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