[Nut-upsdev] git and svn [was: [PATCH] nut: add autogen.sh]
Charles Lepple
clepple at gmail.com
Sun Nov 23 17:09:04 UTC 2008
On Sun, Jun 22, 2008 at 2:56 PM, Axel Gembe <ago at bastart.eu.org> wrote:
> Charles Lepple wrote:
>> this looks like the output of git. How is that working out? Would you
>> care to share some details on your setup?
>>
> Yes, indeed it is. I recently started using git-svn to clone svn
> repositories so I can work with them when my internet connection is lagging.
> Basically what I did was to first use "git-svn clone -s
> svn://svn.debian.org/nut/" which will get you a local copy with all the
> branches and tags.
> Then I do a "git checkout master && git-svn fetch && git-svn rebase" to
> update my local copy when I need something new.
> I'm having a local branch set up on which I make my changes and when I
> want to get my changes onto the latest trunk I do a "git rebase -i master".
> I create my patches using git-format-patch. I never had the time to test
> out stuff like dcommit yet, but I heard it works good.
> If you need anymore details, I'll provide them.
Axel,
I have been doing a little more experimentation with git, and I was
wondering if we could optimize the "git svn clone" step.
Even on the SVN server itself, cloning from SVN to Git takes a while.
But I figure that once this is finished, if we publish that Git
repository, people should be able to run "git clone" in less time than
it would take to run "git svn clone".
However, I am confused about the sample commands here:
http://www.kernel.org/pub/software/scm/git/docs/git-svn.html
(look for the paragraph starting with "The initial git-svn clone can
be quite time-consuming")
Do you know what is going on in that example?
If I naively run "git clone" on the repository that was created on the
SVN server with "git svn clone", my local clone does not seem to be
recognized as a clone of the SVN repository - I can't use any "git
svn" commands on it.
Note to the other NUT developers: I am not necessarily advocating a
project-level switch to Git, but having a shadow Git repository would
be a good way for potential developers to track their local changes to
NUT before they get SVN access.
--
- Charles Lepple
More information about the Nut-upsdev
mailing list