changeset 2406:4a678e408ce5

revert: check for changes against target rev
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Wed, 07 Jun 2006 10:33:26 -0700
parents 4593d09e534d
children 8fe3d60b7f19
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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'))