##// END OF EJS Templates
shelve: do not add the dirstate backup to the transaction...
marmoute -
r50402:f0a3aaa0 stable
parent child Browse files
Show More
@@ -378,7 +378,7 b' def _restoreactivebookmark(repo, mark):'
378 378 def _aborttransaction(repo, tr):
379 379 """Abort current transaction for shelve/unshelve, but keep dirstate"""
380 380 dirstatebackupname = b'dirstate.shelve'
381 repo.dirstate.savebackup(tr, dirstatebackupname)
381 repo.dirstate.savebackup(None, dirstatebackupname)
382 382 tr.abort()
383 383 repo.dirstate.restorebackup(None, dirstatebackupname)
384 384
@@ -1,4 +1,14 b''
1 1 #testcases stripbased phasebased
2 #testcases dirstate-v1 dirstate-v2
3
4 #if dirstate-v2
5 $ cat >> $HGRCPATH << EOF
6 > [format]
7 > use-dirstate-v2=1
8 > [storage]
9 > dirstate-v2.slow-path=allow
10 > EOF
11 #endif
2 12
3 13 $ cat <<EOF >> $HGRCPATH
4 14 > [extensions]
@@ -1,6 +1,16 b''
1 1 #testcases stripbased phasebased
2 2 #testcases abortflag abortcommand
3 3 #testcases continueflag continuecommand
4 #testcases dirstate-v1 dirstate-v2
5
6 #if dirstate-v2
7 $ cat >> $HGRCPATH << EOF
8 > [format]
9 > use-dirstate-v2=1
10 > [storage]
11 > dirstate-v2.slow-path=allow
12 > EOF
13 #endif
4 14
5 15 $ cat <<EOF >> $HGRCPATH
6 16 > [extensions]
General Comments 0
You need to be logged in to leave comments. Login now