exporting patch:
authorMichael Springmann <michael.springmann@unibas.ch>
Fri, 13 Mar 2009 21:14:57 +0100
changeset 7852 a8dccbed54ef
parent 7851 62e33d0f8840
child 7853 af062a9fea9b
exporting patch: Fixed behavior of revsplit for branch names including the @-symbol.
hgext/convert/subversion.py
--- a/hgext/convert/subversion.py	Mon Mar 16 17:21:10 2009 -0500
+++ b/hgext/convert/subversion.py	Fri Mar 13 21:14:57 2009 +0100
@@ -463,7 +463,7 @@
         return int(rev.split('@')[-1])
 
     def revsplit(self, rev):
-        url, revnum = rev.encode(self.encoding).split('@', 1)
+        url, revnum = rev.encode(self.encoding).rsplit('@', 1)
         revnum = int(revnum)
         parts = url.split('/', 1)
         uuid = parts.pop(0)[4:]