##// END OF EJS Templates
dirstate-item: use `maybe_clean` instead of `state` in `strip`...
marmoute -
r48908:97c5d1c2 default
parent child Browse files
Show More
@@ -255,7 +255,9 b' def debugstrip(ui, repo, *revs, **opts):'
255
255
256 # reset files that only changed in the dirstate too
256 # reset files that only changed in the dirstate too
257 dirstate = repo.dirstate
257 dirstate = repo.dirstate
258 dirchanges = [f for f in dirstate if dirstate[f] != b'n']
258 dirchanges = [
259 f for f in dirstate if not dirstate.get_entry(f).maybe_clean
260 ]
259 changedfiles.extend(dirchanges)
261 changedfiles.extend(dirchanges)
260
262
261 repo.dirstate.rebuild(urev, uctx.manifest(), changedfiles)
263 repo.dirstate.rebuild(urev, uctx.manifest(), changedfiles)
General Comments 0
You need to be logged in to leave comments. Login now