* SVN to Git: trunk moved during repository history [not found] <l2x2f0f6ced1004191416jd8db7d5eyf8fc7a55f5efa2cc@mail.gmail.com> @ 2010-04-19 21:18 ` Bradley Wagner 2010-04-20 0:07 ` Stephen Kelly 2010-04-27 19:55 ` Bradley Wagner 0 siblings, 2 replies; 5+ messages in thread From: Bradley Wagner @ 2010-04-19 21:18 UTC (permalink / raw) To: git I'm trying to port an SVN project to Git. We have gone through multiple layouts for our SVN repository. It started off with just a mainline branch in the root folder. Then we went to the standard layout (branches, trunk, tags). The problem is that when I do a "git svn clone --stdlayout" of the repository, it's not picking up any of the revisions from when the trunk previously resided in the root directory. Is there any way to specify that the trunk had multiple paths the way you can specify multiple branch folders with -b flag? What would be the best course of action for reporting an SVN repo who's layout had changed during its history? Thanks, Bradley ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: SVN to Git: trunk moved during repository history 2010-04-19 21:18 ` SVN to Git: trunk moved during repository history Bradley Wagner @ 2010-04-20 0:07 ` Stephen Kelly 2010-04-21 14:03 ` Bradley Wagner 2010-04-27 19:55 ` Bradley Wagner 1 sibling, 1 reply; 5+ messages in thread From: Stephen Kelly @ 2010-04-20 0:07 UTC (permalink / raw) To: git Bradley Wagner wrote: > I'm trying to port an SVN project to Git. We have gone through > multiple layouts for our SVN repository. It started off with just a > mainline branch in the root folder. Then we went to the standard > layout (branches, trunk, tags). > > The problem is that when I do a "git svn clone --stdlayout" of the > repository, it's not picking up any of the revisions from when the > trunk previously resided in the root directory. > Is there any way to specify that the trunk had multiple paths the way > you can specify multiple branch folders with -b flag? What would be > the best course of action for reporting an SVN repo who's layout had > changed during its history? One option is svn2git http://gitorious.org/svn2git/svn2git http://techbase.kde.org/Projects/MoveToGit/UsingSvn2Git examples: http://gitorious.org/svn2git/kde-ruleset > > Thanks, > Bradley ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: SVN to Git: trunk moved during repository history 2010-04-20 0:07 ` Stephen Kelly @ 2010-04-21 14:03 ` Bradley Wagner 2010-04-23 15:12 ` Ulrich Spörlein 0 siblings, 1 reply; 5+ messages in thread From: Bradley Wagner @ 2010-04-21 14:03 UTC (permalink / raw) To: Stephen Kelly; +Cc: git Hmm, I'm not seeing where in the documentation you would instruct it to look in multiple locations in the SVN repository's history for the trunk branch. On Mon, Apr 19, 2010 at 8:07 PM, Stephen Kelly <steveire@gmail.com> wrote: > Bradley Wagner wrote: > >> I'm trying to port an SVN project to Git. We have gone through >> multiple layouts for our SVN repository. It started off with just a >> mainline branch in the root folder. Then we went to the standard >> layout (branches, trunk, tags). >> >> The problem is that when I do a "git svn clone --stdlayout" of the >> repository, it's not picking up any of the revisions from when the >> trunk previously resided in the root directory. >> Is there any way to specify that the trunk had multiple paths the way >> you can specify multiple branch folders with -b flag? What would be >> the best course of action for reporting an SVN repo who's layout had >> changed during its history? > > One option is svn2git > > http://gitorious.org/svn2git/svn2git > > http://techbase.kde.org/Projects/MoveToGit/UsingSvn2Git > > examples: > > http://gitorious.org/svn2git/kde-ruleset > >> >> Thanks, >> Bradley > > > -- > To unsubscribe from this list: send the line "unsubscribe git" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: SVN to Git: trunk moved during repository history 2010-04-21 14:03 ` Bradley Wagner @ 2010-04-23 15:12 ` Ulrich Spörlein 0 siblings, 0 replies; 5+ messages in thread From: Ulrich Spörlein @ 2010-04-23 15:12 UTC (permalink / raw) To: Bradley Wagner; +Cc: Stephen Kelly, git On Wed, 21.04.2010 at 10:03:16 -0400, Bradley Wagner wrote: > Hmm, I'm not seeing where in the documentation you would instruct it > to look in multiple locations in the SVN repository's history for the > trunk branch. I did this for the FreeBSD repo, where one or two branches were moved to some other level. I can't get to the rule file right now, but you need to figure out the revisions when the layout changed. Then use something like this (from the top of my head, most likely buggy) match / min-revision 1 max-revision 100 branch master end match /trunk min-revision 101 branch master end ... you get the drift. Ask again if something is unclear, next time I get to my rules files I can give you a better example. Bye, Uli ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: SVN to Git: trunk moved during repository history 2010-04-19 21:18 ` SVN to Git: trunk moved during repository history Bradley Wagner 2010-04-20 0:07 ` Stephen Kelly @ 2010-04-27 19:55 ` Bradley Wagner 1 sibling, 0 replies; 5+ messages in thread From: Bradley Wagner @ 2010-04-27 19:55 UTC (permalink / raw) To: git So, I tried to clone the repository with this command: git svn clone -T trunk -t tags/6.x -b branches/6.x <svn_url>/<proj_name> After it completed, I went it to the .git/config file and added a few more branches/tags from other locations: [svn-remote "svn"] url = https://<svn_url>/<proj_name> fetch = <proj_name>/trunk:refs/remotes/trunk branches = <proj_name>/branches/{6.x,5.x}/*:refs/remotes/* branches = <proj_name>/branches/*:refs/remotes/* tags = <proj_name>/tags/{3.7.x,4.x,5.x,6.x,old-releases}/*:refs/remotes/tags/* Is my syntax even correct? Can I have more than one "branches" property? How do I tell git-svn to re-sync with the latest branch/tag locations? Thanks! On Mon, Apr 19, 2010 at 5:18 PM, Bradley Wagner <bradley.wagner@hannonhill.com> wrote: > I'm trying to port an SVN project to Git. We have gone through > multiple layouts for our SVN repository. It started off with just a > mainline branch in the root folder. Then we went to the standard > layout (branches, trunk, tags). > > The problem is that when I do a "git svn clone --stdlayout" of the > repository, it's not picking up any of the revisions from when the > trunk previously resided in the root directory. > Is there any way to specify that the trunk had multiple paths the way > you can specify multiple branch folders with -b flag? What would be > the best course of action for reporting an SVN repo who's layout had > changed during its history? > > Thanks, > Bradley > ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-04-27 19:55 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <l2x2f0f6ced1004191416jd8db7d5eyf8fc7a55f5efa2cc@mail.gmail.com> 2010-04-19 21:18 ` SVN to Git: trunk moved during repository history Bradley Wagner 2010-04-20 0:07 ` Stephen Kelly 2010-04-21 14:03 ` Bradley Wagner 2010-04-23 15:12 ` Ulrich Spörlein 2010-04-27 19:55 ` Bradley Wagner
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).