##// END OF EJS Templates
merge-actions: gather all created action into a set...
marmoute -
r49561:773ad0f5 default
parent child Browse files
Show More
@@ -4,6 +4,7 b' import collections'
4 import errno
4 import errno
5 import shutil
5 import shutil
6 import struct
6 import struct
7 import weakref
7
8
8 from .i18n import _
9 from .i18n import _
9 from .node import (
10 from .node import (
@@ -106,8 +107,11 b' class MergeAction(object):'
106 _short: internal representation used to identify each action
107 _short: internal representation used to identify each action
107 """
108 """
108
109
110 ALL_ACTIONS = weakref.WeakSet()
111
109 def __init__(self, short):
112 def __init__(self, short):
110 self._short = short
113 self._short = short
114 self.ALL_ACTIONS.add(self)
111
115
112 def __hash__(self):
116 def __hash__(self):
113 return hash(self._short)
117 return hash(self._short)
General Comments 0
You need to be logged in to leave comments. Login now