git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-svn or git problem...
@ 2007-05-21  7:54 David Kastrup
  2007-05-22  9:16 ` Eric Wong
  0 siblings, 1 reply; 3+ messages in thread
From: David Kastrup @ 2007-05-21  7:54 UTC (permalink / raw)
  To: git


Hi,

I have used git-svn for checking out the trunk of a large Subversion
archive.  The .git subdirectory now sits in the /rep/texlive/trunk
directory.

But I actually would now want to have the branches (which are pretty
small in comparison) available in git as well, without checking the
whole trunk out again.

Is there a way to move the .git tracking one directory level upwards
and get the branches into it as well, without checking out the trunk
again (the trunk is several Gigabytes of size)?

-- 
David Kastrup

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: git-svn or git problem...
  2007-05-21  7:54 git-svn or git problem David Kastrup
@ 2007-05-22  9:16 ` Eric Wong
  2007-05-22  9:36   ` do_switch()-enabled SVN binaries for git-svn Eric Wong
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Wong @ 2007-05-22  9:16 UTC (permalink / raw)
  To: David Kastrup; +Cc: git

David Kastrup <dak@gnu.org> wrote:
> 
> Hi,
> 
> I have used git-svn for checking out the trunk of a large Subversion
> archive.  The .git subdirectory now sits in the /rep/texlive/trunk
> directory.
> 
> But I actually would now want to have the branches (which are pretty
> small in comparison) available in git as well, without checking the
> whole trunk out again.
 
> Is there a way to move the .git tracking one directory level upwards
> and get the branches into it as well, without checking out the trunk
> again (the trunk is several Gigabytes of size)?

If you're using a 1.5.1 or later version of git-svn, you can do so
pretty easily by editing your .git/config:

If you already have something like:

[svn-remote "svn"]
	# url here is the repository root, and 'mpc/trunk' in fetch
	# is the relative path within the repository
        url = https://svn.musicpd.org
        fetch = mpc/trunk:refs/remotes/git-svn

You can just add the following lines to the config in the above section:

        branches = mpc/branches/*:refs/remotes/*
        tags = mpc/tags/*:refs/remotes/tags/*


If you have something like:

[svn-remote "svn"]
	# url here is the full path of what you're tracking,
        url = https://svn.musicpd.org/mpc/trunk
        fetch = :refs/remotes/git-svn

Change it to something like in the first example (assuming you
have read permissions to the repository root).


If recompiling SVN is feasible for you and the branches (as a fresh
checkout) are as big as trunk, I highly recommend the do_switch patch
for SVN which lets you transfer only a delta between the branch/tag
point of trunk:

http://svn.haxx.se/dev/archive-2007-01/0936.shtml

-- 
Eric Wong

^ permalink raw reply	[flat|nested] 3+ messages in thread

* do_switch()-enabled SVN binaries for git-svn
  2007-05-22  9:16 ` Eric Wong
@ 2007-05-22  9:36   ` Eric Wong
  0 siblings, 0 replies; 3+ messages in thread
From: Eric Wong @ 2007-05-22  9:36 UTC (permalink / raw)
  To: David Kastrup; +Cc: git

Eric Wong <normalperson@yhbt.net> wrote:
> If recompiling SVN is feasible for you and the branches (as a fresh
> checkout) are as big as trunk, I highly recommend the do_switch patch
> for SVN which lets you transfer only a delta between the branch/tag
> point of trunk:
> 
> http://svn.haxx.se/dev/archive-2007-01/0936.shtml

In case you're using Debian x86-32, I've uploaded .deb packages
(with full, Debian sources) here:

http://git-svn.bogomips.org/svn/

The patch by itself is available here:

http://git-svn.bogomips.org/svn/switch-editor-perl.diff

-- 
Eric Wong

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-05-22  9:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-21  7:54 git-svn or git problem David Kastrup
2007-05-22  9:16 ` Eric Wong
2007-05-22  9:36   ` do_switch()-enabled SVN binaries for git-svn Eric Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).