mercurial/debugcommands.py
changeset 47544 5363610f61ef
parent 47438 1be9bf3669cb
child 47568 85ce6ed51b9c
equal deleted inserted replaced
47543:20b65f34d704 47544:5363610f61ef
  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