[issue2474] hg convert from svn, subversion error and trace while converting tags

Kiruwa bugs at mercurial.selenic.com
Thu Nov 4 10:25:51 CDT 2010


New submission from Kiruwa <kiruwa+hg at gmail.com>:

If you run 'hg convert -r 500 svn://someurl.org/svn/oldname hgversion', when 
"oldname" was changed to something else at revision 501 in svn, the tag 
conversion at the end of the convert process will fail. (the svn subprocess will 
come back with "File not found")

This is because the tag conversion currently always looks at the tip of svn, 
rather than the tags directory at the specified revision. The following patch 
fixed the issue for me.

# HG changeset patch
# User kiruwa at hgtestserver <kiruwa+hg at gmail.com>
# Date 1288884068 18000
# Node ID cb70fd46ccfaca838a4d2be25b0421c47425b762
# Parent  6bf8d48bec8e1ab2e0462ce14a914d06e64f7117
If a revision is specified on the convert line, don't look for tags at the svn 
tip revision

diff -r 6bf8d48bec8e -r cb70fd46ccfa hgext/convert/subversion.py
--- a/hgext/convert/subversion.py       Wed Oct 20 23:48:33 2010 +0200
+++ b/hgext/convert/subversion.py       Thu Nov 04 10:21:08 2010 -0500
@@ -438,7 +438,7 @@
         # change in the future.
         pendings = []
         tagspath = self.tags
-        start = svn.ra.get_latest_revnum(self.ra)
+        start = self.revnum(self.head)
         stream = self._getlog([self.tags], start, self.startrev)
         try:
             for entry in stream:

----------
messages: 14289
nosy: Kiruwa
priority: bug
status: unread
title: hg convert from svn, subversion error and trace while converting tags
topic: 1.6.4, convert

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2474>
____________________________________________________


More information about the Mercurial-devel mailing list