Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hg.py @ 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 | 49f2d5644f04 dda11e799529 |
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)