comparison hgext/evolve.py @ 1484:e3484e9632cd

split: don't update before it is actually needed Before this patch, we were updating the working copy parent needlessly and before the error checking. This patch fixes the issue.
author Laurent Charignon <lcharignon@fb.com>
date Sat, 08 Aug 2015 12:45:36 -0700
parents 3c0aebe73482
children 1ba64be11bf8
comparison
equal deleted inserted replaced
1483:dc1467a629ca 1484:e3484e9632cd
2581 revs = scmutil.revrange(repo, revopt) 2581 revs = scmutil.revrange(repo, revopt)
2582 if len(revs) != 1: 2582 if len(revs) != 1:
2583 raise util.Abort(_("you can only specify one revision to split")) 2583 raise util.Abort(_("you can only specify one revision to split"))
2584 else: 2584 else:
2585 rev = list(revs)[0] 2585 rev = list(revs)[0]
2586 commands.update(ui, repo, rev)
2587 else: 2586 else:
2588 rev = '.' 2587 rev = '.'
2589 2588
2590 try: 2589 try:
2591 wlock = repo.wlock() 2590 wlock = repo.wlock()