Mercurial > hg
comparison mercurial/dirstate.py @ 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 | 5083cba2a777 |
comparison
equal
deleted
inserted
replaced
2062:5460f0196f77 | 2063:f1fda71e134e |
---|---|
343 # nd is the top of the repository dir tree | 343 # nd is the top of the repository dir tree |
344 nd = util.normpath(top[len(self.root) + 1:]) | 344 nd = util.normpath(top[len(self.root) + 1:]) |
345 if nd == '.': | 345 if nd == '.': |
346 nd = '' | 346 nd = '' |
347 else: | 347 else: |
348 # do not recurse into a repo contained in this | |
349 # one. use bisect to find .hg directory so speed | |
350 # is good on big directory. | |
348 hg = bisect.bisect_left(names, '.hg') | 351 hg = bisect.bisect_left(names, '.hg') |
349 if hg < len(names) and names[hg] == '.hg': | 352 if hg < len(names) and names[hg] == '.hg': |
350 if os.path.isdir(os.path.join(top, '.hg')): | 353 if os.path.isdir(os.path.join(top, '.hg')): |
351 continue | 354 continue |
352 for f in names: | 355 for f in names: |