mercurial/commands.py
changeset 259 45c293b71341
parent 257 65dccc4555c2
child 262 3db700146536
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -104,7 +104,7 @@ def add(ui, repo, file, *files):
 def addremove(ui, repo):
     """add all new files, delete all missing files"""
     (c, a, d, u) = repo.diffdir(repo.root)
-    repo.add(a)
+    repo.add(u)
     repo.remove(d)
 
 def annotate(u, repo, file, *files, **ops):