# HG changeset patch # User Patrick Mezard # Date 1340292782 -7200 # Node ID a5894bb979091dc637e641848448af6ef9b385d6 # Parent 98c9c69c311d4ae5f8cd898a4489b93b45704daa evolve: remove --change . == --change .^ crazyness diff -r 98c9c69c311d -r a5894bb97909 hgext/evolve.py --- a/hgext/evolve.py Thu Jun 21 16:23:42 2012 +0200 +++ b/hgext/evolve.py Thu Jun 21 17:33:02 2012 +0200 @@ -410,9 +410,6 @@ If you specify --change, amend additionally considers all changesets between the indicated changeset and the working copy parent as updates to be subsumed. - This allows you to commit updates manually first. As a special shorthand you - can say `--amend .` instead of '--amend p1(p1())', which subsumes your latest - commit as an update of its parent. Behind the scenes, Mercurial first commits the update as a regular child of the current parent. Then it creates a new commit on the parent's parents @@ -424,10 +421,7 @@ """ # determine updates to subsume - change = opts.get('change', '.') - if change == '.': - change = 'p1(p1())' - old = scmutil.revsingle(repo, change) + old = scmutil.revsingle(repo, opts.get('change') or '.') lock = repo.lock() try: