svn-import from simple root svn repo gives bzr revnos = svn revnos + 1
I'd like to completely convert my svn repos (I have several, one per project) over to bzr. I don't need or want my new bzr repos to have any interactivity with the old svn repos.
My svn repos don't have any trunk or branch directories in them - each is its own project. Here's what I typically try:
bzr svn-import --standalone --layout=root -v --trees https://<email address hidden>
Say I have an svn repo with 100 revision. When I run svn-import, the resulting bzr repo with its single bzr branch has bzr revno 1 that doesn't correspond to any svn revno, and goes all the way up to bzr revno 101 that corresponds to svn revno 100. In other words, all my bzr revision numbers are off by 1.
I know this has something to do with the created bzr branch itself being labelled as revision 1, and maybe due to it needing the newer rich-root bzr repo type instead of the default, but this is terrible behaviour as far as I'm concerned. I've made references to lots of svn revnos in the past, and I don't want all these references to be off by 1 after I convert to bzr. I think I've tried all the svn-import options, none of them seems to get rid of this behaviour.
On the other hand, I've noticed that running svn2bzr on a dump of an svn repo works as I expect. Bzr revnos come out identical to the old svn revnos. Also, the bzr repo type is the default pack-0.92, and there's no reference to the original svn repo as the original branch. This is all great. My only problem with svn2bzr is that it screws up the timestamps (they're in UTC, which is fine, but it seems to over-correct for my timezone, so all timestamps are 7 or 8 hours later than they should be in UTC).
I'm using the latest bzr 1.13rc1-1 from the binary windows installer, looks like bzr-svn is 0.5.3 final according to its __init__.py. My svn server is using svn 1.4.6dfsg1-2ubuntu1 (on Ubuntu 8.04).
Is there any way to make svn-import behave like svn2bzr?
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Jelmer Vernooij
- Solved:
- Last query:
- Last reply: