comparison hgext/evolve.py @ 688:f2c3fd21fa63 stable

prune: add an informative message about the number of pruned changesets
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Mon, 04 Feb 2013 22:05:03 +0100
parents 6c1fbef2952e
children d48aae167b9d
comparison
equal deleted inserted replaced
687:6c1fbef2952e 688:f2c3fd21fa63
1279 raise util.Abort(msg) 1279 raise util.Abort(msg)
1280 markers = [] 1280 markers = []
1281 for p in precs: 1281 for p in precs:
1282 markers.append((p, sucs)) 1282 markers.append((p, sucs))
1283 createmarkers(repo, markers) 1283 createmarkers(repo, markers)
1284 # informs that changeset have been pruned
1285 ui.status(_('%i changesets pruned\n') % len(precs))
1284 # update to an unkilled parent 1286 # update to an unkilled parent
1285 wdp = repo['.'] 1287 wdp = repo['.']
1286 newnode = wdp 1288 newnode = wdp
1287 while newnode.obsolete(): 1289 while newnode.obsolete():
1288 newnode = newnode.parents()[0] 1290 newnode = newnode.parents()[0]