##// END OF EJS Templates
histedit: add histedit state class...
David Soria Parra -
r22976:88671172 default
parent child Browse files
Show More
@@ -188,6 +188,25 b' editcomment = _("""# Edit history betwee'
188 #
188 #
189 """)
189 """)
190
190
191 class histeditstate(object):
192 def __init__(self, repo, parentctxnode=None, rules=None, keep=None,
193 topmost=None, replacements=None):
194 self.repo = repo
195 self.parentctxnode = parentctxnode
196 self.rules = rules
197 self.keep = keep
198 self.topmost = topmost
199 if replacements is None:
200 self.replacements = []
201 else:
202 self.replacements = replacements
203
204 def write(self):
205 fp = self.repo.vfs('histedit-state', 'w')
206 pickle.dump((self.parentctxnode, self.rules, self.keep,
207 self.topmost, self.replacements), fp)
208 fp.close()
209
191 def commitfuncfor(repo, src):
210 def commitfuncfor(repo, src):
192 """Build a commit function for the replacement of <src>
211 """Build a commit function for the replacement of <src>
193
212
General Comments 0
You need to be logged in to leave comments. Login now