revert: check for changes against target rev
authorVadim Gelfer <vadim.gelfer@gmail.com>
Wed, 07 Jun 2006 10:33:26 -0700
changeset 2406 4a678e408ce5
parent 2405 4593d09e534d
child 2407 8fe3d60b7f19
revert: check for changes against target rev
mercurial/commands.py
--- a/mercurial/commands.py	Wed Jun 07 18:33:15 2006 +0200
+++ b/mercurial/commands.py	Wed Jun 07 10:33:26 2006 -0700
@@ -2353,7 +2353,7 @@
         names[abs] = (rel, exact)
         target_only[abs] = True
 
-    changes = repo.changes(match=names.has_key, wlock=wlock)
+    changes = repo.changes(node, match=names.has_key, wlock=wlock)
     modified, added, removed, deleted, unknown = map(dict.fromkeys, changes)
 
     revert = ([], _('reverting %s\n'))