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: restrict ssh url splits to singles (fixes #623)

Changeset 190706a41976

Parent e716c6fb68eb

by Steve Borho

Changes to one file · Browse files at 190706a41976 Showing diff from parent e716c6fb68eb Diff from another changeset...

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