Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hg.py @ 2738:400a4a502001
pull: allow to pull from bundle file without need for bundle: syntax
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Sun, 30 Jul 2006 21:46:38 -0700 |
parents | 532809ba1db5 |
children | 386f04d6ecb3 |
line wrap: on
line diff
--- a/mercurial/hg.py Sun Jul 30 09:37:08 2006 +0300 +++ b/mercurial/hg.py Sun Jul 30 21:46:38 2006 -0700 @@ -31,6 +31,8 @@ def local_(ui, path, create=0): if path.startswith('file:'): path = path[5:] + if not create and os.path.isfile(path): + return bundlerepo.bundlerepository(ui, '', path) return localrepo.localrepository(ui, path, create) def ssh_(ui, path, create=0):