hg: note that islocal only accepts paths pointing to repos stable
authorSiddharth Agarwal <sid0@fb.com>
Mon, 03 Feb 2014 14:36:20 -0800
branchstable
changeset 20355 7d269e7620c4
parent 20354 b433b43364e4
child 20356 ec5d4287a426
child 20357 6863d42eb59a
hg: note that islocal only accepts paths pointing to repos hg.islocal doesn't work for paths pointing to non-repos, such as patch files.
mercurial/hg.py
--- a/mercurial/hg.py	Mon Feb 03 14:53:44 2014 -0800
+++ b/mercurial/hg.py	Mon Feb 03 14:36:20 2014 -0800
@@ -82,7 +82,7 @@
         return thing
 
 def islocal(repo):
-    '''return true if repo or path is local'''
+    '''return true if repo (or path pointing to repo) is local'''
     if isinstance(repo, str):
         try:
             return _peerlookup(repo).islocal(repo)