# HG changeset patch # User Vadim Gelfer # Date 1154547960 25200 # Node ID b1b1aa6f275c52a0965f0efbf12dca1251566848 # Parent 60683ab1ed3340357609c10a522943312266d2a7 allow None for path of hg.repository diff -r 60683ab1ed33 -r b1b1aa6f275c mercurial/hg.py --- a/mercurial/hg.py Wed Aug 02 10:48:34 2006 -0700 +++ b/mercurial/hg.py Wed Aug 02 12:46:00 2006 -0700 @@ -13,7 +13,8 @@ demandload(globals(), "errno lock os shutil util") def _local(path): - return os.path.isfile(util.drop_scheme('file', path)) and bundlerepo or localrepo + return (os.path.isfile(path and util.drop_scheme('file', path)) and + bundlerepo or localrepo) schemes = { 'bundle': bundlerepo,