changeset 264:1c21865bf8ba

amend: do not rely on revsingle() default for --change
author Patrick Mezard <patrick@mezard.eu>
date Tue, 12 Jun 2012 11:53:02 +0200
parents de62daaf2054
children 24943df310d4
files hgext/evolve.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)