git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-svn and complex branch/tag layout
@ 2008-09-05 13:53 Andriy Gapon
  2008-09-07  2:56 ` Eric Wong
  0 siblings, 1 reply; 3+ messages in thread
From: Andriy Gapon @ 2008-09-05 13:53 UTC (permalink / raw)
  To: git


I am trying to use 'git svn' with FreeBSD base repository (which is now
in svn).
As can be seen here in "RELENG_* branches and general layout" section:
http://wiki.freebsd.org/SubversionPrimer

There are several subdirectories for branches and tags depending on the
status of a branch/tag in question. As I understand those subdirectories
do not introduce separate namespaces, i.e. a particular tag/branch name
is supposed to be unique across all subdirectories.

Does git-svn support repository layouts with multiple branch/tag
subdirectories? Or does it only support "standard layout" variations
that still have only one subdirectory for each?

Thank you in advance for any help/advice!

-- 
Andriy Gapon

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

* Re: git-svn and complex branch/tag layout
  2008-09-05 13:53 git-svn and complex branch/tag layout Andriy Gapon
@ 2008-09-07  2:56 ` Eric Wong
  2008-09-07 16:45   ` Marcus Griep
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Wong @ 2008-09-07  2:56 UTC (permalink / raw)
  To: Andriy Gapon; +Cc: git, Marcus Griep

Andriy Gapon <avg@icyb.net.ua> wrote:
> 
> I am trying to use 'git svn' with FreeBSD base repository (which is now
> in svn).
> As can be seen here in "RELENG_* branches and general layout" section:
> http://wiki.freebsd.org/SubversionPrimer
> 
> There are several subdirectories for branches and tags depending on the
> status of a branch/tag in question. As I understand those subdirectories
> do not introduce separate namespaces, i.e. a particular tag/branch name
> is supposed to be unique across all subdirectories.
> 
> Does git-svn support repository layouts with multiple branch/tag
> subdirectories? Or does it only support "standard layout" variations
> that still have only one subdirectory for each?
> 
> Thank you in advance for any help/advice!

Hi Andriy,

For tracking /etc, this seems to work:

  git svn clone -b 'releng/*/etc' -t 'release/*/etc' svn://svn.freebsd.org/base
  (it started, I don't have the time/space/bandwidth to let it finish).

Unfortunately only releng and release, you can get other namespaces like
stable.


Double-globbing should work, (I thought Marcus got it to work a few
months ago), but doesn't seem to at the moment:

  git svn clone -b '*/*/etc'

Marcus?


The long way:

If you explicitly specify every branch you want, it'll definitely, too.
It's just a huge pain to setup since you'll lose all the advantages of
globbing, so it could end up being a very big .git/config file:

[svn-remote "svn"]
        url = svn://svn.freebsd.org/base
	fetch = releng/4.3/etc:refs/remotes/releng/4.3/etc
	fetch = release/4.3.0/etc:refs/remotes/release/4.3.0/etc
	fetch = stable/4/etc:refs/remotes/stable/4/etc
	; ...

-- 
Eric Wong

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

* Re: git-svn and complex branch/tag layout
  2008-09-07  2:56 ` Eric Wong
@ 2008-09-07 16:45   ` Marcus Griep
  0 siblings, 0 replies; 3+ messages in thread
From: Marcus Griep @ 2008-09-07 16:45 UTC (permalink / raw)
  To: Eric Wong; +Cc: Andriy Gapon, git

[-- Attachment #1: Type: text/plain, Size: 469 bytes --]

Eric Wong wrote:
> Double-globbing should work, (I thought Marcus got it to work a few
> months ago), but doesn't seem to at the moment:
> 
>   git svn clone -b '*/*/etc'
> 
> Marcus?

I'm not sure about starting with multi-globs, but I've been using the 'branches/*/*' form
for a while now at work.  I can try to look into the '*/*' and '*/*/blah' forms this week.

-- 
Marcus Griep
GPG Key ID: 0x5E968152
——
http://www.boohaunt.net
את.ψο´


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 793 bytes --]

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

end of thread, other threads:[~2008-09-07 16:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-05 13:53 git-svn and complex branch/tag layout Andriy Gapon
2008-09-07  2:56 ` Eric Wong
2008-09-07 16:45   ` Marcus Griep

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).