amend: do not rely on revsingle() default for --change
authorPatrick Mezard <patrick@mezard.eu>
Tue, 12 Jun 2012 11:53:02 +0200
changeset 264 1c21865bf8ba
parent 263 de62daaf2054
child 265 24943df310d4
amend: do not rely on revsingle() default for --change
hgext/evolve.py
--- a/hgext/evolve.py	Tue Jun 12 11:14:02 2012 +0200
+++ b/hgext/evolve.py	Tue Jun 12 11:53:02 2012 +0200
@@ -385,7 +385,7 @@
     """
 
     # determine updates to subsume
-    change = opts.get('change')
+    change = opts.get('change', '.')
     if change == '.':
         change = 'p1(p1())'
     old = scmutil.revsingle(repo, change)