comparison mercurial/hg.py @ 2479:10ec8039e1d8

hg.repository: many routines expect path to be a string even if empty.
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Wed, 21 Jun 2006 17:09:29 -0700
parents 7a77934ece46
children e1831f06eef1
comparison
equal deleted inserted replaced
2478:287b7da4aeaa 2479:10ec8039e1d8
53 'ssh': lambda ui, path: sshrepo.sshrepository(ui, path), 53 'ssh': lambda ui, path: sshrepo.sshrepository(ui, path),
54 'static-http': static_http, 54 'static-http': static_http,
55 } 55 }
56 56
57 def repository(ui, path=None, create=0): 57 def repository(ui, path=None, create=0):
58 if not path: path = ''
58 scheme = path 59 scheme = path
59 if scheme: 60 if scheme:
60 c = scheme.find(':') 61 c = scheme.find(':')
61 scheme = c >= 0 and scheme[:c] 62 scheme = c >= 0 and scheme[:c]
62 try: 63 try: