# HG changeset patch # User Siddharth Agarwal # Date 2014-02-03 22:36:20 # Node ID 7d269e7620c48eee93871d33e673b7a8acb503cc # Parent b433b43364e4059797637a5cf298f24e7209f95c 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. diff --git a/mercurial/hg.py b/mercurial/hg.py --- a/mercurial/hg.py +++ b/mercurial/hg.py @@ -82,7 +82,7 @@ def _peerlookup(path): 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)