comparison mercurial/repair.py @ 6408:3f5f23ba18bc

fix warning from pychecker
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sun, 30 Mar 2008 20:21:57 +0200
parents f89fd07fc51d
children f6c00b17387c
comparison
equal deleted inserted replaced
6407:12377957948d 6408:3f5f23ba18bc
70 return extranodes 70 return extranodes
71 71
72 def strip(ui, repo, node, backup="all"): 72 def strip(ui, repo, node, backup="all"):
73 cl = repo.changelog 73 cl = repo.changelog
74 # TODO delete the undo files, and handle undo of merge sets 74 # TODO delete the undo files, and handle undo of merge sets
75 pp = cl.parents(node)
76 striprev = cl.rev(node) 75 striprev = cl.rev(node)
77 76
78 # Some revisions with rev > striprev may not be descendants of striprev. 77 # Some revisions with rev > striprev may not be descendants of striprev.
79 # We have to find these revisions and put them in a bundle, so that 78 # We have to find these revisions and put them in a bundle, so that
80 # we can restore them after the truncations. 79 # we can restore them after the truncations.