From: "Björn Steinbrink" <B.Steinbrink@gmx.de>
To: Jon Lim <snowblink@gmail.com>
Cc: Eric Wong <normalperson@yhbt.net>, git@vger.kernel.org
Subject: Re: [PATCH] git svn clone -s was not prefixing 'branches/'
Date: Sat, 17 Jan 2009 13:07:23 +0100 [thread overview]
Message-ID: <20090117120723.GA24549@atjola.homenet> (raw)
In-Reply-To: <751e526a0901170339m6471ac84tdb032a090d19d7c6@mail.gmail.com>
On 2009.01.17 11:39:28 +0000, Jon Lim wrote:
> Hi,
>
> Maybe this patch doesn't fix the problem I was having. I will attempt
> to describe it better here.
>
> I understand that a standard subversion setup is as follows:
> trunk
> branches
> tags
>
> With the -s option, svn clone should expect this.
>
> Using the example subversion repository:
> trunk
> branches/RB_1.0
> branches/RB_2.0
> tags/REL_1.0
> tags/REL_2.0
>
> Currently, using the -s option you get:
> trunk
> RB_1.0
> RB_2.0
> tags/REL_1.0
> tags/REL_2.0
>
> I think it makes sense to have:
> trunk
> branches/RB_1.0
> branches/RB_2.0
> tags/REL_1.0
> tags/REL_2.0
Why? "trunk" is just a branch like any other branch, too. It's basically
just a svn convention that it's not in branches/ but in its own
"toplevel" directory. Once imported into git, it's just an ordinary
remote tracking branch. It's already pretty well distiguishable from all
the other branches due to its name.
What _does_ make sense is to have a common prefix for all the stuff you
got from svn, using for example --prefix=svn/. That way you get:
svn/trunk
svn/RB_1.0
svn/RB_2.0
svn/tags/REL_1.0
svn/tags/REL_2.0
The important part is that those names aren't ambiguous if you have
local branch heads called, for example:
trunk
RB_1.0
RB_2.0
as the svn/ prefix is part of the shortname for the remote tracking
branches. So "trunk" is the branch head and "svn/trunk" is the remote
tracking branch.
Btw Eric, is there any reason why there's no prefix used by default?
Using the name for the svn-remote as the prefix would make a lot of
sense to me.
Björn
next prev parent reply other threads:[~2009-01-17 12:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1232050647-2870-1-git-send-email-snowblink@gmail.com>
2009-01-17 10:54 ` [PATCH] git svn clone -s was not prefixing 'branches/' Eric Wong
2009-01-17 11:39 ` Jon Lim
2009-01-17 12:07 ` Björn Steinbrink [this message]
2009-01-18 1:24 ` Eric Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090117120723.GA24549@atjola.homenet \
--to=b.steinbrink@gmx.de \
--cc=git@vger.kernel.org \
--cc=normalperson@yhbt.net \
--cc=snowblink@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox