diff 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
line wrap: on
line diff
--- a/mercurial/interfaces/dirstate.py	Thu Feb 16 04:02:36 2023 +0100
+++ b/mercurial/interfaces/dirstate.py	Thu Feb 16 04:49:35 2023 +0100
@@ -220,15 +220,6 @@
         return files in the dirstate (in whatever state) filtered by match
         """
 
-    def savebackup(tr, backupname):
-        '''Save current dirstate into backup file'''
-
-    def restorebackup(tr, backupname):
-        '''Restore dirstate by backup file'''
-
-    def clearbackup(tr, backupname):
-        '''Clear backup file'''
-
     def verify(m1, m2, p1, narrow_matcher=None):
         """
         check the dirstate contents against the parent manifest and yield errors