Commits

Yuya Nishihara  committed 1fd5f62

sync: use str.split instead of QString.split at ssh url parsing (fixes #1280)

  • Participants
  • Parent commits 829d029
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/sync.py

             port = self.portentry.text()
             parts = [scheme, '://']
             if scheme == 'ssh' and '@' in host:
-                if host[0] == '@':
-                    user, host = '', host[1:]
-                else:
-                    user, host = host.split('@', 1)
+                user, host = unicode(host).split('@', 1)
                 self.curuser = hglib.fromunicode(user)
                 self.lastsshuser = self.curuser
             if self.curuser: