Submitter | phabricator |
---|---|
Date | Oct. 1, 2021, 9:42 a.m. |
Message ID | <differential-rev-PHID-DREV-jpj2kngp7sghpwjsxxit-req@mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/49855/ |
State | Superseded |
Headers | show |
Comments
Patch
diff --git a/mercurial/strip.py b/mercurial/strip.py --- a/mercurial/strip.py +++ b/mercurial/strip.py @@ -255,7 +255,9 @@ # reset files that only changed in the dirstate too dirstate = repo.dirstate - dirchanges = [f for f in dirstate if dirstate[f] != b'n'] + dirchanges = [ + f for f in dirstate if not dirstate.get_entry(f).maybe_clean + ] changedfiles.extend(dirchanges) repo.dirstate.rebuild(urev, uctx.manifest(), changedfiles)