# HG changeset patch # User Vadim Gelfer # Date 1144961165 25200 # Node ID f1fda71e134ee1e975b11464e9c9f4bd514fc680 # Parent 5460f0196f772a8b6dca09c57abfb113ab22c6e2 benoit asked for comment to make avoid of recursive repo clearer. diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py --- a/mercurial/dirstate.py +++ b/mercurial/dirstate.py @@ -345,6 +345,9 @@ class dirstate(object): if nd == '.': nd = '' else: + # do not recurse into a repo contained in this + # one. use bisect to find .hg directory so speed + # is good on big directory. hg = bisect.bisect_left(names, '.hg') if hg < len(names) and names[hg] == '.hg': if os.path.isdir(os.path.join(top, '.hg')):