equal
deleted
inserted
replaced
2606 speclen = len(spec) |
2606 speclen = len(spec) |
2607 fullpaths = opts['full'] |
2607 fullpaths = opts['full'] |
2608 files, dirs = set(), set() |
2608 files, dirs = set(), set() |
2609 adddir, addfile = dirs.add, files.add |
2609 adddir, addfile = dirs.add, files.add |
2610 for f, st in pycompat.iteritems(dirstate): |
2610 for f, st in pycompat.iteritems(dirstate): |
2611 if f.startswith(spec) and st[0] in acceptable: |
2611 if f.startswith(spec) and st.state in acceptable: |
2612 if fixpaths: |
2612 if fixpaths: |
2613 f = f.replace(b'/', pycompat.ossep) |
2613 f = f.replace(b'/', pycompat.ossep) |
2614 if fullpaths: |
2614 if fullpaths: |
2615 addfile(f) |
2615 addfile(f) |
2616 continue |
2616 continue |