mercurial/commands.py
changeset 6599 cd4db3999ef9
parent 6594 fca1688f0459
child 6600 b822a379860b
equal deleted inserted replaced
6598:7fc87fa485e5 6599:cd4db3999ef9
  2361         m.bad = badfn
  2361         m.bad = badfn
  2362         for abs in repo.walk(m, node=node):
  2362         for abs in repo.walk(m, node=node):
  2363             if abs not in names:
  2363             if abs not in names:
  2364                 names[abs] = m.rel(abs), m.exact(abs)
  2364                 names[abs] = m.rel(abs), m.exact(abs)
  2365 
  2365 
  2366         changes = repo.status(files=files, match=names.has_key)[:4]
  2366         m = cmdutil.matchfiles(repo, names)
       
  2367         changes = repo.status(files=m.files(), match=m)[:4]
  2367         modified, added, removed, deleted = map(dict.fromkeys, changes)
  2368         modified, added, removed, deleted = map(dict.fromkeys, changes)
  2368 
  2369 
  2369         # if f is a rename, also revert the source
  2370         # if f is a rename, also revert the source
  2370         cwd = repo.getcwd()
  2371         cwd = repo.getcwd()
  2371         for f in added:
  2372         for f in added: