comparison hgext/evolve.py @ 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
comparison
equal deleted inserted replaced
263:de62daaf2054 264:1c21865bf8ba
383 383
384 Returns 0 on success, 1 if nothing changed. 384 Returns 0 on success, 1 if nothing changed.
385 """ 385 """
386 386
387 # determine updates to subsume 387 # determine updates to subsume
388 change = opts.get('change') 388 change = opts.get('change', '.')
389 if change == '.': 389 if change == '.':
390 change = 'p1(p1())' 390 change = 'p1(p1())'
391 old = scmutil.revsingle(repo, change) 391 old = scmutil.revsingle(repo, change)
392 392
393 lock = repo.lock() 393 lock = repo.lock()