0

I want to delete one changeset from my repo and thinking about using strip extension. Is that extension change commit hashes after I strip polluted changeset?

Ishan Liyanage
  • 2,237
  • 1
  • 26
  • 25
  • What hashes do you expect that it might change? It doesn't strip a change from the middle of a bunch of changesets, it'll strip the changeset and all its descendants. If you need to rebase any descendants to keep them then yes their hashes will change because their parents have changed. – Nanhydrin Jul 27 '16 at 08:20
  • I was worried, if it change commit hash (as it removes some changesets in middle) after I executed strip which in tern will affect if the repo is used as sub repo. Anyways, I will try some examples.. – Ishan Liyanage Jul 27 '16 at 09:30
  • 1
    Yeah, if you want to strip something out in the middle of a series of commits then the commits that were based on the stripped one will change hashes, and if you've got other repos using it as a subrepo and referencing any of those commits then they won't be able to find the commits. Does it need to be stripped, could you just back out the changes? https://www.mercurial-scm.org/wiki/Backout – Nanhydrin Jul 27 '16 at 09:59

0 Answers0