# HG changeset patch # User Pierre-Yves David # Date 2023-02-16 03:41:38 # Node ID 2a46555c5522fe2ecb705b561f085bab56b0371f # Parent acd2a02676606c29ac7270165d5e712cb6a68172 mq: write the dirstate before stripping I am not certain why it is dirty (probably the `repo.setparent` call a right before. However I know we need it flushed before the repository starts to be stripped. diff --git a/hgext/mq.py b/hgext/mq.py --- a/hgext/mq.py +++ b/hgext/mq.py @@ -2048,6 +2048,7 @@ class queue: # assumes strip can roll itself back if interrupted repo.setparents(*cparents) + repo.dirstate.write(repo.currenttransaction()) self.applied.pop() self.applieddirty = True strip(self.ui, repo, [top], update=False, backup=False)