##// 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 1836 # discard all changes (including ones already written
1837 1837 # out) in this transaction
1838 1838 narrowspec.restorebackup(self, 'journal.narrowspec')
1839 narrowspec.restorewcbackup(self, 'journal.narrowspec.dirstate')
1839 1840 repo.dirstate.restorebackup(None, 'journal.dirstate')
1840 1841
1841 1842 repo.invalidate(clearfilecache=True)
@@ -1913,6 +1914,7 b' class localrepository(object):'
1913 1914 def _journalfiles(self):
1914 1915 return ((self.svfs, 'journal'),
1915 1916 (self.svfs, 'journal.narrowspec'),
1917 (self.vfs, 'journal.narrowspec.dirstate'),
1916 1918 (self.vfs, 'journal.dirstate'),
1917 1919 (self.vfs, 'journal.branch'),
1918 1920 (self.vfs, 'journal.desc'),
@@ -1925,6 +1927,7 b' class localrepository(object):'
1925 1927 @unfilteredmethod
1926 1928 def _writejournal(self, desc):
1927 1929 self.dirstate.savebackup(None, 'journal.dirstate')
1930 narrowspec.savewcbackup(self, 'journal.narrowspec.dirstate')
1928 1931 narrowspec.savebackup(self, 'journal.narrowspec')
1929 1932 self.vfs.write("journal.branch",
1930 1933 encoding.fromlocal(self.dirstate.branch()))
@@ -2014,6 +2017,7 b' class localrepository(object):'
2014 2017 dsguard.close()
2015 2018
2016 2019 narrowspec.restorebackup(self, 'undo.narrowspec')
2020 narrowspec.restorewcbackup(self, 'undo.narrowspec.dirstate')
2017 2021 self.dirstate.restorebackup(None, 'undo.dirstate')
2018 2022 try:
2019 2023 branch = self.vfs.read('undo.branch')
General Comments 0
You need to be logged in to leave comments. Login now