Submitter | phabricator |
---|---|
Date | Jan. 29, 2022, 2:15 p.m. |
Message ID | <differential-rev-PHID-DREV-6wtaaexmq27mtv37hjhy-req@mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/50440/ |
State | New |
Headers | show |
Comments
Patch
diff --git a/mercurial/mergestate.py b/mercurial/mergestate.py --- a/mercurial/mergestate.py +++ b/mercurial/mergestate.py @@ -4,6 +4,7 @@ import errno import shutil import struct +import weakref from .i18n import _ from .node import ( @@ -106,8 +107,11 @@ _short: internal representation used to identify each action """ + ALL_ACTIONS = weakref.WeakSet() + def __init__(self, short): self._short = short + self.ALL_ACTIONS.add(self) def __hash__(self): return hash(self._short)