diff mercurial/localrepo.py @ 2740:386f04d6ecb3

clean up hg.py: move repo constructor code into each repo module
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Mon, 31 Jul 2006 07:11:12 -0700
parents 109a22f5434a
children b550cd82f92a e3564699409c
line wrap: on
line diff
--- a/mercurial/localrepo.py	Sun Jul 30 22:52:34 2006 -0700
+++ b/mercurial/localrepo.py	Mon Jul 31 07:11:12 2006 -0700
@@ -2271,3 +2271,8 @@
                     os.path.join(p, "undo.dirstate"))
     return a
 
+def instance(ui, path, create):
+    return localrepository(ui, util.drop_scheme('file', path), create)
+    
+def islocal(path):
+    return True