From: Marc Branchaud <marcnarc@xiplink.com>
To: Daniele Segato <daniele.bilug@gmail.com>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: git-svn-Cloning repository with complicate nesting
Date: Thu, 03 Sep 2009 12:50:24 -0400 [thread overview]
Message-ID: <4A9FF3D0.9040606@xiplink.com> (raw)
In-Reply-To: <9accb4400909030917y2e8d4c97tef1320c05d4c4e1c@mail.gmail.com>
Daniele Segato wrote:
>
> hum...
> It could be an idea but I don't know how hard could it be to check it:
> how much deep inside the tree should Git search for branch?
Well, as far as it takes. Actually, the search should be fairly well constrained. After checking that the entries under a particular path aren't a copy of the trunk, each entry can only represent either a branch that git-svn already knows about, or a new branch.
> what if there are branches that are completely differents?
Not sure what you mean there. Can you come up with an example of this?
> may be the user could create and pass a "branch model" to git svn to
> make it able to decide what is a branch and what isn't.
>
> I think there are many options
>
> In my case It would have worked defining a structure like:
> BRANCHES/*/root -> remote/svn/branch/*
> BRANCHES/*/*/root -> remote/svn/branch/*/*
>
> But it would be better with something like:
> BRANCHES/\([^\/]+\)/root -> remote/svn/branch/$1
> BRANCHES/\([^\/]+\)/\([^\/]+\)/root -> remote/svn/branch/$1/$2
>
> like a grouped regex.
>
> every branch not matching the regex will be skipped..
> only an idea.. It couln't work in every situation but it would allow a
> greater degree of freedom in the configuration.
Turning the branch refspecs into true regular expressions sounds like a good idea to me, and would probably be easier to implement than the trunk-detection stuff I proposed. Though there'd have to be a way to stay compatible with or upgrade the current non-regex refspecs.
> I don't know if Git developers are interested in thinking on some
> features like this.. it sound like an SVN-only hack to me.
All of git-svn is already a hack for dealing with SVN. :) I'm sure a patch for this would be welcome.
M.
prev parent reply other threads:[~2009-09-03 17:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-27 8:32 git-svn-Cloning repository with complicate nesting Daniele Segato
2009-09-03 14:31 ` Marc Branchaud
2009-09-03 16:17 ` Daniele Segato
2009-09-03 16:50 ` Marc Branchaud [this message]
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=4A9FF3D0.9040606@xiplink.com \
--to=marcnarc@xiplink.com \
--cc=daniele.bilug@gmail.com \
--cc=git@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).