changeset 2063:f1fda71e134e

benoit asked for comment to make avoid of recursive repo clearer.
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Thu, 13 Apr 2006 13:46:05 -0700
parents 5460f0196f77
children 547ede0123a2
files mercurial/dirstate.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/dirstate.py	Thu Apr 13 12:44:40 2006 -0700
+++ b/mercurial/dirstate.py	Thu Apr 13 13:46:05 2006 -0700
@@ -345,6 +345,9 @@
                 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')):