##// END OF EJS Templates
undo-files: clean existing files up before writing new one...
marmoute -
r51198:92734603 stable
parent child Browse files
Show More
@@ -690,6 +690,11 b' class transaction(util.transactional):'
690 """write transaction data for possible future undo call"""
690 """write transaction data for possible future undo call"""
691 if self._undoname is None:
691 if self._undoname is None:
692 return
692 return
693 cleanup_undo_files(
694 self._report,
695 self._vfsmap,
696 undo_prefix=self._undoname,
697 )
693
698
694 def undoname(fn: bytes) -> bytes:
699 def undoname(fn: bytes) -> bytes:
695 base, name = os.path.split(fn)
700 base, name = os.path.split(fn)
@@ -141,8 +141,6 b' Create a non-inlined filelog in r3:'
141 1 r3/.hg/store/phaseroots
141 1 r3/.hg/store/phaseroots
142 1 r3/.hg/store/requires
142 1 r3/.hg/store/requires
143 1 r3/.hg/store/undo
143 1 r3/.hg/store/undo
144 1 r3/.hg/store/undo.backup.fncache (repofncache !)
145 1 r3/.hg/store/undo.backup.phaseroots
146 1 r3/.hg/store/undo.backupfiles
144 1 r3/.hg/store/undo.backupfiles
147
145
148 Push to repo r1 should break up most hardlinks in r2:
146 Push to repo r1 should break up most hardlinks in r2:
@@ -253,8 +251,6 b' r4 has hardlinks in the working dir (not'
253 2 r4/.hg/store/phaseroots
251 2 r4/.hg/store/phaseroots
254 2 r4/.hg/store/requires
252 2 r4/.hg/store/requires
255 2 r4/.hg/store/undo
253 2 r4/.hg/store/undo
256 2 r4/.hg/store/undo.backup.fncache (repofncache !)
257 2 r4/.hg/store/undo.backup.phaseroots
258 2 r4/.hg/store/undo.backupfiles
254 2 r4/.hg/store/undo.backupfiles
259 [24] r4/.hg/undo.backup.branch (re)
255 [24] r4/.hg/undo.backup.branch (re)
260 2 r4/\.hg/undo\.backup\.dirstate (re)
256 2 r4/\.hg/undo\.backup\.dirstate (re)
@@ -308,8 +304,6 b' Update back to revision 12 in r4 should '
308 2 r4/.hg/store/phaseroots
304 2 r4/.hg/store/phaseroots
309 2 r4/.hg/store/requires
305 2 r4/.hg/store/requires
310 2 r4/.hg/store/undo
306 2 r4/.hg/store/undo
311 2 r4/.hg/store/undo.backup.fncache (repofncache !)
312 2 r4/.hg/store/undo.backup.phaseroots
313 2 r4/.hg/store/undo.backupfiles
307 2 r4/.hg/store/undo.backupfiles
314 [23] r4/.hg/undo.backup.branch (re)
308 [23] r4/.hg/undo.backup.branch (re)
315 2 r4/\.hg/undo\.backup\.dirstate (re)
309 2 r4/\.hg/undo\.backup\.dirstate (re)
@@ -189,7 +189,6 b' conditional above.'
189 $ find src/.hg/largefiles/* | egrep "(dirstate|$hash)" | sort
189 $ find src/.hg/largefiles/* | egrep "(dirstate|$hash)" | sort
190 src/.hg/largefiles/dirstate
190 src/.hg/largefiles/dirstate
191 src/.hg/largefiles/e2fb5f2139d086ded2cb600d5a91a196e76bf020
191 src/.hg/largefiles/e2fb5f2139d086ded2cb600d5a91a196e76bf020
192 src/.hg/largefiles/undo.backup.dirstate
193
192
194 Verify that backwards compatibility is maintained for old storage layout
193 Verify that backwards compatibility is maintained for old storage layout
195 $ mv src/.hg/largefiles/$hash share_dst/.hg/largefiles
194 $ mv src/.hg/largefiles/$hash share_dst/.hg/largefiles
@@ -811,8 +811,7 b' downgrading'
811 - manifest
811 - manifest
812
812
813 $ ls -1 .hg/store/ | egrep '00(changelog|manifest)(\.n|-.*\.nd)'
813 $ ls -1 .hg/store/ | egrep '00(changelog|manifest)(\.n|-.*\.nd)'
814 undo.backup.00changelog.n
814 [1]
815 undo.backup.00manifest.n
816 $ hg debugnodemap --metadata
815 $ hg debugnodemap --metadata
817
816
818
817
@@ -858,8 +857,6 b' upgrading'
858 00changelog.n
857 00changelog.n
859 00manifest-*.nd (glob)
858 00manifest-*.nd (glob)
860 00manifest.n
859 00manifest.n
861 undo.backup.00changelog.n
862 undo.backup.00manifest.n
863
860
864 $ hg debugnodemap --metadata
861 $ hg debugnodemap --metadata
865 uid: * (glob)
862 uid: * (glob)
General Comments 0
You need to be logged in to leave comments. Login now