comparison hgext/evolution.py @ 94:780a222d547d

[evolution:evolve] use short hex instead of rev number
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Wed, 21 Sep 2011 03:49:59 +0200
parents 5b23cdf998d0
children 23c232a81fbe
comparison
equal deleted inserted replaced
93:1b962aaf0c7d 94:780a222d547d
148 if not obs.obsolete(): 148 if not obs.obsolete():
149 obs = next.parents()[1] 149 obs = next.parents()[1]
150 assert obs.obsolete() 150 assert obs.obsolete()
151 newer = obsolete.newerversion(repo, obs.node()) 151 newer = obsolete.newerversion(repo, obs.node())
152 target = newer[-1] 152 target = newer[-1]
153 repo.ui.status('hg relocate --rev %s %s\n' % (next, repo[target].rev())) 153 repo.ui.status('hg relocate --rev %s %s\n' % (repo[next], repo[target]))
154 154
155 @command('^relocate', 155 @command('^relocate',
156 [ 156 [
157 ('r', 'rev', '.', 157 ('r', 'rev', '.',
158 _('revision to relocate')), 158 _('revision to relocate')),