changeset 20355:7d269e7620c4 stable

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.
author Siddharth Agarwal <sid0@fb.com>
date Mon, 03 Feb 2014 14:36:20 -0800
parents b433b43364e4
children ec5d4287a426 6863d42eb59a
files mercurial/hg.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)