comparison hgext/convert/subversion.py @ 4921:52772826e969

Automated merge with http://hg.intevation.org/mercurial/crew
author Bryan O'Sullivan <bos@serpentine.com>
date Wed, 18 Jul 2007 19:47:22 -0700
parents 5e89b0dafce5
children 961379b2c586
comparison
equal deleted inserted replaced
4920:4db03fa58bd5 4921:52772826e969
60 except ValueError: 60 except ValueError:
61 raise util.Abort('svn: revision %s is not an integer' % rev) 61 raise util.Abort('svn: revision %s is not an integer' % rev)
62 try: 62 try:
63 # Support file://path@rev syntax. Useful e.g. to convert 63 # Support file://path@rev syntax. Useful e.g. to convert
64 # deleted branches. 64 # deleted branches.
65 url, latest = url.rsplit("@", 1) 65 at = url.rfind('@')
66 latest = int(latest) 66 if at >= 0:
67 latest = int(url[at+1:])
68 url = url[:at]
67 except ValueError, e: 69 except ValueError, e:
68 pass 70 pass
69 self.url = url 71 self.url = url
70 self.encoding = 'UTF-8' # Subversion is always nominal UTF-8 72 self.encoding = 'UTF-8' # Subversion is always nominal UTF-8
71 try: 73 try: