[PATCH 3 of 3 stable] hg: note that islocal only accepts paths pointing to repos
Siddharth Agarwal
sid0 at fb.com
Mon Feb 3 23:12:13 UTC 2014
# HG changeset patch
# User Siddharth Agarwal <sid0 at fb.com>
# Date 1391466980 28800
# Mon Feb 03 14:36:20 2014 -0800
# Branch stable
# Node ID 67d654780ba7446e374396b74590a431d08607b4
# Parent a2661fa3b83547321cdd07bb7b24210b35870198
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 @@
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)
More information about the Mercurial-devel
mailing list