mercurial/cmdutil.py
changeset 6581 1ae7cb678d24
parent 6580 da2a20d2ba3d
child 6582 5acbdd3941c4
equal deleted inserted replaced
6580:da2a20d2ba3d 6581:1ae7cb678d24
  1147     # extract addremove carefully -- this function can be called from a command
  1147     # extract addremove carefully -- this function can be called from a command
  1148     # that doesn't support addremove
  1148     # that doesn't support addremove
  1149     if opts.get('addremove'):
  1149     if opts.get('addremove'):
  1150         addremove(repo, pats, opts)
  1150         addremove(repo, pats, opts)
  1151 
  1151 
  1152     fns, match, anypats = matchpats(repo, pats, opts)
  1152     m = match(repo, pats, opts)
  1153     if pats:
  1153     if pats:
  1154         status = repo.status(files=fns, match=match)
  1154         status = repo.status(files=m.files(), match=m)
  1155         modified, added, removed, deleted, unknown = status[:5]
  1155         modified, added, removed, deleted, unknown = status[:5]
  1156         files = modified + added + removed
  1156         files = modified + added + removed
  1157         slist = None
  1157         slist = None
  1158         for f in fns:
  1158         for f in m.files():
  1159             if f == '.':
  1159             if f == '.':
  1160                 continue
  1160                 continue
  1161             if f not in files:
  1161             if f not in files:
  1162                 rf = repo.wjoin(f)
  1162                 rf = repo.wjoin(f)
  1163                 rel = repo.pathto(f)
  1163                 rel = repo.pathto(f)