changeset 7852:a8dccbed54ef

exporting patch: Fixed behavior of revsplit for branch names including the @-symbol.
author Michael Springmann <michael.springmann@unibas.ch>
date Fri, 13 Mar 2009 21:14:57 +0100
parents 62e33d0f8840
children af062a9fea9b
files hgext/convert/subversion.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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:]