Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0.4, 2.0.5, and 2.1

stable sync: use rsplit to break username from url (fixes #623)

All @ in the URL must be part of the username or the url/host divider

Changeset 25818ed50c94

Parent 208b423cc8fe

by Steve Borho

Changes to one file · Browse files at 25818ed50c94 Showing diff from parent 208b423cc8fe Diff from another changeset...

 
29
30
31
32
 
33
34
35
 
29
30
31
 
32
33
34
35
@@ -29,7 +29,7 @@
  p = path[len('ssh://'):]   user, passwd = None, None   if p.find('@') != -1: - user, p = tuple(p.split('@', 1)) + user, p = tuple(p.rsplit('@', 1))   if user.find(':') != -1:   user, passwd = tuple(user.rsplit(':', 1))   m = re.match(r'([^:/]+)(:(\d+))?(/(.*))?$', p)