LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-14-2013, 10:10 AM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
svn-all-fast-export: rev x did not match any rules; auto-recursing


Hi!

I'm testing the best approach to move a svn repo to git. git-svn is not an option given that it puts all branches/tags/trunk together as a single branch.... not good.

I'm running svn2git at the moment (locally) and it's taking for ever, even for a rather-small repo that must be on less than 8000 revisions.

I want to give svn-all-fast-export a try and it seems to do a fairly good job at tracking branches/merges (plus is fast as hell) but I see that at the end I'm missing revisions from the last gew months wich is not an option to be left out. What I wonder is what I can do to make it move ahead.

I see this error message on the output:

Code:
some-path rev 7613 did not match any rules; auto-recursing
some-other-path rev 7613 did not match any rules; auto-recursing
yet-some-other-path rev 7613 did not match any rules; auto-recursing
Was there a problem with this revisions that made the migration process stop short? What can I do to solve it?

This is what I'm running:
Code:
svn-all-fast-export --rules /usr/share/doc/svn-all-fast-export/samples/merged-branches-tags.rules ~/location-to-svnrepo/
Thanks in advance.
 
Old 03-14-2013, 10:16 AM   #2
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
This is what I see about the revision on a dump:

Code:
Revision-number: 7613
Prop-content-length: 165
Content-length: 165

K 7
svn:log
V 63
[some-project] Moviendo trunk, branches y tags a carpeta some-project
K 10
svn:author
V 7
herwind
K 8
svn:date
V 27
2012-09-03T14:13:06.682158Z
PROPS-END

Node-path: some-project/branches
Node-kind: dir
Node-action: add
Node-copyfrom-rev: 7612
Node-copyfrom-path: branches


Node-path: some-project/tags
Node-kind: dir
Node-action: add
Node-copyfrom-rev: 7612
Node-copyfrom-path: tags


Node-path: some-project/trunk
Node-kind: dir
Node-action: add
Node-copyfrom-rev: 7612
Node-copyfrom-path: trunk


Node-path: trunk
Node-action: delete


Node-path: branches
Node-action: delete


Node-path: tags
Node-action: delete
Any idea what I have to do about it? Thanks in advance.
 
Old 03-14-2013, 10:23 AM   #3
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
Well..... this could be very important.

At first the repo (I have a local copy but the repo is actually reached through https) that was reached through
https://someserver/some-repo/

was moved to

https://someserver/some-repo/some-project

(which is kind of what this revision is about, right?) and then two more repos were created for two more projects like

https://someserver/some-repo/another-project
https://someserver/some-repo/yet-another-project

If I look in the FS stuff, the repo is still at the location of some-repo, there are no directories named some-project or another-project or yet-another-project inside.

So, what kind of magic trick will I have to pull from the hat to get over it?
 
Old 03-14-2013, 03:23 PM   #4
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
Ok.... as I said before, that was the problem. repo/trunk repo/branches and repo/tags got moved into repo/a-project/trunk, repo/a-project/branches and repo/a-project/tags respectively.

I was able to break the problem by using rules.

I told svn-all-fast-export to set up 3 git repos (each for each project in the svn repo) then I set up match rules for /trunk/ /branches/ and /tags/ that is matched to project a's repo's master and branches/tags respectively. Finally, created matches for repo/a-project/trunk repo/a-project/branches/ and repo/a-project/tags to a project's repo as well.

Something like this:

Code:
create repository project-a
end repository

create repository project-b
end repository

create repository project-c
end repository

match /trunk/
  repository project-a
  branch master
end match

match /(branches|tags)/([^/]+)/
  repository project-a
  branch \2
end match

match /project-b/trunk/
  repository project-b
  branch master
end match

match /project-a/trunk/
  repository project-a
  branch master
end match

match /project-a/(branches|tags)/([^/]+)/
  repository project-a
  branch \2
end match

match /project-c/trunk/
  repository project-c
  branch master 
end match
 
  


Reply

Tags
git, svn, svn-all-fast-export


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Coping with MS Outlook - getting it to launch, run export rules, and exit gnuweenie Linux - Software 1 05-08-2011 10:34 AM
svn, export repo to remote machine RudraB Linux - General 1 08-29-2010 10:40 AM
LXer: Mozilla Firefox Not In Violation of U.S Government Export Rules LXer Syndicated Linux News 0 09-18-2009 07:10 PM
Iomega Rev Drive slow with server, but fast with laptop xnomad Linux - Hardware 2 03-11-2007 08:08 PM
Recommendation for a fast VNC (-like) server that will export :0 rose_bud4201 Linux - Software 4 06-10-2006 01:49 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration