Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1
    Senior Member
    Join Date
    Sep 2006
    Location
    Zurich, Switzerland
    Posts
    794

    Migration from subversion to git

    Over the next few weeks we will be migrating from subversion to git for source-code management of the Squeezebox code. We have several different repositories and they will be migrated in stages.

    The first repo to be migrated will be the jive one. This contains the firmware on the newer players (Radio, Touch and the Controller). The existing repo will be split into several smaller repos, the important ones of which will be squeezeos and squeezeplay.

    This migration is now under way. The existing subversion repository is now read-only: http://svn.slimdevices.com/jive. We will make public mirrors of the relevant repos available via GitHub (http://github.com/logitech). We have not yet worked out the mechanics to enable community members who currently have checkin rights to provide changes but we will be doing that shortly.

    I'll post updates in due course.

    Alan.

  2. #2
    Senior Member
    Join Date
    Apr 2005
    Location
    Colorado
    Posts
    10,073
    Are the public mirrors only for those with read-only access, or will checkins also go through them?

    Why the need for mirrors? Are there that many people accessing the current server(s)?

  3. #3
    Senior Member Philip Meyer's Avatar
    Join Date
    Apr 2005
    Location
    UK
    Posts
    5,568
    What was the problem with Subversion? I thought it was working well.

  4. #4
    Senior Member
    Join Date
    Sep 2006
    Location
    Zurich, Switzerland
    Posts
    794
    Quote Originally Posted by JJZolx View Post
    Are the public mirrors only for those with read-only access, or will checkins also go through them?
    Not sure yet. Probably to be achieved via a fork or forks of the github repo.

    Why the need for mirrors? Are there that many people accessing the current server(s)?
    Because there are private branches in the main repo.

  5. #5
    Senior Member
    Join Date
    Sep 2006
    Location
    Zurich, Switzerland
    Posts
    794
    Quote Originally Posted by Philip Meyer View Post
    What was the problem with Subversion? I thought it was working well.
    The branch-merge stuff with svn and svk is awkward and there are many things that git offers. We also plan to use gerrit internally.

  6. #6
    Senior Member gharris999's Avatar
    Join Date
    Apr 2005
    Location
    Santa Fe, NM
    Posts
    3,299
    Awy:

    Will you post instructions for checking out the source from git once your transition is complete?

  7. #7
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    937
    Rockbox has a good git/gerrit usage page that could be used as a template.

    http://www.rockbox.org/wiki/UsingGit
    Ralphy

    1-Touch, 4-Classics, 2-Booms, 2-Squeezeslaves, 3-Squeezeplays, 3-Squeezelites
    Squeezeslave donations always appreciated.

  8. #8
    Phil Meyer
    Guest

    Migration from subversion to git

    >Will you post instructions for checking out the source from git once
    >your transition is complete?
    >

    For Windows, TortoiseGit seems encouraging: http://code.google.com/p/tortoisegit/

  9. #9
    Senior Member gharris999's Avatar
    Join Date
    Apr 2005
    Location
    Santa Fe, NM
    Posts
    3,299
    The only real trouble I've had with git is figuring out how to pull down the latest code from the repo, overwriting any local changes. Is this what I should be doing?

    # git stash save --keep-index
    # git stash drop
    # git pull --rebase


    The other thing I'm used to doing via svn is checking out just a part of a repo, e.g.:

    SOURCEREPO='http://svn.slimdevices.com/repos/slim/7.7/trunk/server'
    svn co $SOURCEREPO /usr/share/lms/server

    ..i.e. just enough of the code for a runnable lms, skipping all the other, non-essential stuff. Will I be able to do something like that using git? My very limited git experience has had me thus far only checking out an entire trunk of a project.

  10. #10
    Senior Member
    Join Date
    May 2008
    Posts
    1,446
    If you really want to discard your local changes then you want:

    git reset --hard
    git clean -fd
    git pull

    (though you might want something other than a plain pull depend on what you are up to)
    Yes, it will. Yes, all of them. Yes, SoftSqueeze as well. What ?
    I SAID ALL OF THEM !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •