Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8.2, 0.8.3, and 0.9

stable thgconfig: fix parsing SSH url

fixes issue #494

Changeset 7e178071640b

Parent 594b19902124

by Yuki KODAMA

Changes to one file · Browse files at 7e178071640b Showing diff from parent 594b19902124 Diff from another changeset...

 
299
300
301
302
303
 
 
304
305
306
 
299
300
301
 
 
302
303
304
305
306
@@ -299,8 +299,8 @@
  e.disconnect(h)     def urlparse(self, path): - if path.startswith('ssh://'): - m = re.match(r'^ssh://(([^@]+)@)?([^:/]+)(:(\d+))?(/(.*))?$', path) + m = re.match(r'^ssh://(([^@]+)@)?([^:/]+)(:(\d+))?(/(.*))?$', path) + if m:   user = m.group(2)   host = m.group(3)   port = m.group(5)