status: fix "added" attributes renamed in bf2bf986ff87
authorPatrick Mezard <pmezard@gmail.com>
Sun, 18 May 2008 23:09:59 +0200
changeset 6615 0697e7818d07
parent 6614 944a292d522a
child 6616 e9dfe4e3ee6f
status: fix "added" attributes renamed in bf2bf986ff87
mercurial/commands.py
--- a/mercurial/commands.py	Wed May 14 01:08:51 2008 +0200
+++ b/mercurial/commands.py	Sun May 18 23:09:59 2008 +0200
@@ -2650,9 +2650,9 @@
             if node2 is None:
                 ctx2 = repo.workingctx()
             for k, v in copies.copies(repo, ctx1, ctx2, ctxn)[0].items():
-                if v in stat.added:
+                if v in stat[1]:
                     copy[v] = k
-                elif k in stat.added:
+                elif k in stat[1]:
                     copy[k] = v
 
     for state, char, files in changestates: