comparison mercurial/dirstate.py @ 24521:489026bffbf6

dirstate._walkexplicit: indicate root as '.', not '' '.' is the canonical way to represent the root, and it's apparently the only transformation that normpath makes.
author Siddharth Agarwal <sid0@fb.com>
date Sun, 29 Mar 2015 23:27:25 -0700
parents 55c449345b10
children 18085e46caa9
comparison
equal deleted inserted replaced
24520:34e8bfc21f94 24521:489026bffbf6
627 while i < len(files) and files[i].startswith(subpath): 627 while i < len(files) and files[i].startswith(subpath):
628 del files[i] 628 del files[i]
629 j += 1 629 j += 1
630 630
631 if not files or '.' in files: 631 if not files or '.' in files:
632 files = [''] 632 files = ['.']
633 results = dict.fromkeys(subrepos) 633 results = dict.fromkeys(subrepos)
634 results['.hg'] = None 634 results['.hg'] = None
635 635
636 alldirs = None 636 alldirs = None
637 for ff in files: 637 for ff in files: