comparison mercurial/interfaces/dirstate.py @ 50086:76d44983a398

dirstate: remove the dedicated backup logic When alone, the dirstate can now take care of its commit/rollback pattern itself. When in a transaction, the transaction deal with commit/rollback pattern quite fine. Why did you have a dedicated backup logic?
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 16 Feb 2023 04:49:35 +0100
parents 3550e4a88ccd
children 3f3fca243dca
comparison
equal deleted inserted replaced
50085:ff12f42415f5 50086:76d44983a398
218 def matches(match): 218 def matches(match):
219 """ 219 """
220 return files in the dirstate (in whatever state) filtered by match 220 return files in the dirstate (in whatever state) filtered by match
221 """ 221 """
222 222
223 def savebackup(tr, backupname):
224 '''Save current dirstate into backup file'''
225
226 def restorebackup(tr, backupname):
227 '''Restore dirstate by backup file'''
228
229 def clearbackup(tr, backupname):
230 '''Clear backup file'''
231
232 def verify(m1, m2, p1, narrow_matcher=None): 223 def verify(m1, m2, p1, narrow_matcher=None):
233 """ 224 """
234 check the dirstate contents against the parent manifest and yield errors 225 check the dirstate contents against the parent manifest and yield errors
235 """ 226 """