# HG changeset patch # User Michael Springmann # Date 2009-03-13 20:14:57 # Node ID a8dccbed54ef32272bc4969064b34ff9185f4569 # Parent 62e33d0f8840db589f151db431267feba0f8d8c9 exporting patch: Fixed behavior of revsplit for branch names including the @-symbol. diff --git a/hgext/convert/subversion.py b/hgext/convert/subversion.py --- a/hgext/convert/subversion.py +++ b/hgext/convert/subversion.py @@ -463,7 +463,7 @@ class svn_source(converter_source): 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:]