changeset 402:e3b5b23f7236

Define gitrepo.islocal This makes hg clone src dst create the correct default path when src is a local path.
author Brendan Cully <brendan@kublai.com>
date Mon, 23 May 2011 10:32:38 -0700
parents 6d4f3b6d2e08
children 82e4206551e3
files hggit/gitrepo.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hggit/gitrepo.py
+++ b/hggit/gitrepo.py
@@ -34,3 +34,7 @@
 
 
 instance = gitrepo
+
+def islocal(path):
+    u = util.url(path)
+    return not u.scheme or u.scheme == 'file'