##// END OF EJS Templates
narrow: include working copy narrowspec in transaction journal...
Martin von Zweigbergk -
r41264:3b35ebdb default
parent child Browse files
Show More
@@ -1836,6 +1836,7 b' class localrepository(object):'
1836 # discard all changes (including ones already written
1836 # discard all changes (including ones already written
1837 # out) in this transaction
1837 # out) in this transaction
1838 narrowspec.restorebackup(self, 'journal.narrowspec')
1838 narrowspec.restorebackup(self, 'journal.narrowspec')
1839 narrowspec.restorewcbackup(self, 'journal.narrowspec.dirstate')
1839 repo.dirstate.restorebackup(None, 'journal.dirstate')
1840 repo.dirstate.restorebackup(None, 'journal.dirstate')
1840
1841
1841 repo.invalidate(clearfilecache=True)
1842 repo.invalidate(clearfilecache=True)
@@ -1913,6 +1914,7 b' class localrepository(object):'
1913 def _journalfiles(self):
1914 def _journalfiles(self):
1914 return ((self.svfs, 'journal'),
1915 return ((self.svfs, 'journal'),
1915 (self.svfs, 'journal.narrowspec'),
1916 (self.svfs, 'journal.narrowspec'),
1917 (self.vfs, 'journal.narrowspec.dirstate'),
1916 (self.vfs, 'journal.dirstate'),
1918 (self.vfs, 'journal.dirstate'),
1917 (self.vfs, 'journal.branch'),
1919 (self.vfs, 'journal.branch'),
1918 (self.vfs, 'journal.desc'),
1920 (self.vfs, 'journal.desc'),
@@ -1925,6 +1927,7 b' class localrepository(object):'
1925 @unfilteredmethod
1927 @unfilteredmethod
1926 def _writejournal(self, desc):
1928 def _writejournal(self, desc):
1927 self.dirstate.savebackup(None, 'journal.dirstate')
1929 self.dirstate.savebackup(None, 'journal.dirstate')
1930 narrowspec.savewcbackup(self, 'journal.narrowspec.dirstate')
1928 narrowspec.savebackup(self, 'journal.narrowspec')
1931 narrowspec.savebackup(self, 'journal.narrowspec')
1929 self.vfs.write("journal.branch",
1932 self.vfs.write("journal.branch",
1930 encoding.fromlocal(self.dirstate.branch()))
1933 encoding.fromlocal(self.dirstate.branch()))
@@ -2014,6 +2017,7 b' class localrepository(object):'
2014 dsguard.close()
2017 dsguard.close()
2015
2018
2016 narrowspec.restorebackup(self, 'undo.narrowspec')
2019 narrowspec.restorebackup(self, 'undo.narrowspec')
2020 narrowspec.restorewcbackup(self, 'undo.narrowspec.dirstate')
2017 self.dirstate.restorebackup(None, 'undo.dirstate')
2021 self.dirstate.restorebackup(None, 'undo.dirstate')
2018 try:
2022 try:
2019 branch = self.vfs.read('undo.branch')
2023 branch = self.vfs.read('undo.branch')
General Comments 0
You need to be logged in to leave comments. Login now