##// END OF EJS Templates
largefiles: add tr backup for largefilesdirstate...
Pulkit Goyal -
r48983:1e98f9b5 default
parent child Browse files
Show More
@@ -195,6 +195,8 b' class largefilesdirstate(dirstate.dirsta'
195 # (1) disable PENDING mode always
195 # (1) disable PENDING mode always
196 # (lfdirstate isn't yet managed as a part of the transaction)
196 # (lfdirstate isn't yet managed as a part of the transaction)
197 # (2) avoid develwarn 'use dirstate.write with ....'
197 # (2) avoid develwarn 'use dirstate.write with ....'
198 if tr:
199 tr.addbackup(b'largefiles/dirstate', location=b'plain')
198 super(largefilesdirstate, self).write(None)
200 super(largefilesdirstate, self).write(None)
199
201
200
202
@@ -185,10 +185,12 b' conditional above.'
185
185
186 $ find share_dst/.hg/largefiles/* | sort
186 $ find share_dst/.hg/largefiles/* | sort
187 share_dst/.hg/largefiles/dirstate
187 share_dst/.hg/largefiles/dirstate
188 share_dst/.hg/largefiles/undo.backup.dirstate
188
189
189 $ find src/.hg/largefiles/* | egrep "(dirstate|$hash)" | sort
190 $ find src/.hg/largefiles/* | egrep "(dirstate|$hash)" | sort
190 src/.hg/largefiles/dirstate
191 src/.hg/largefiles/dirstate
191 src/.hg/largefiles/e2fb5f2139d086ded2cb600d5a91a196e76bf020
192 src/.hg/largefiles/e2fb5f2139d086ded2cb600d5a91a196e76bf020
193 src/.hg/largefiles/undo.backup.dirstate
192
194
193 Verify that backwards compatibility is maintained for old storage layout
195 Verify that backwards compatibility is maintained for old storage layout
194 $ mv src/.hg/largefiles/$hash share_dst/.hg/largefiles
196 $ mv src/.hg/largefiles/$hash share_dst/.hg/largefiles
General Comments 0
You need to be logged in to leave comments. Login now