tests/test-amend.t
changeset 41206 6acbe86c6490
parent 41173 4145fd3569c3
child 41214 8633c716f908
equal deleted inserted replaced
41205:3f807237dc94 41206:6acbe86c6490
   330   ? content1_missing_content3-untracked
   330   ? content1_missing_content3-untracked
   331   ? missing_content2_content2-untracked
   331   ? missing_content2_content2-untracked
   332   ? missing_content2_content3-untracked
   332   ? missing_content2_content3-untracked
   333   ? missing_missing_content3-untracked
   333   ? missing_missing_content3-untracked
   334 
   334 
   335 ==========================================
   335 =================================
   336 Test history-editing-backup config option|
   336 Test backup-bundle config option|
   337 ==========================================
   337 =================================
   338   $ hg init $TESTTMP/repo4
   338   $ hg init $TESTTMP/repo4
   339   $ cd $TESTTMP/repo4
   339   $ cd $TESTTMP/repo4
   340   $ echo a>a
   340   $ echo a>a
   341   $ hg ci -Aqma
   341   $ hg ci -Aqma
   342   $ echo oops>b
   342   $ echo oops>b
   344   $ echo partiallyfixed > b
   344   $ echo partiallyfixed > b
   345 
   345 
   346 #if obsstore-off
   346 #if obsstore-off
   347   $ hg amend
   347   $ hg amend
   348   saved backup bundle to $TESTTMP/repo4/.hg/strip-backup/95e899acf2ce-f11cb050-amend.hg
   348   saved backup bundle to $TESTTMP/repo4/.hg/strip-backup/95e899acf2ce-f11cb050-amend.hg
   349 When history-editing-backup config option is set:
   349 When backup-bundle config option is set:
   350   $ cat << EOF >> $HGRCPATH
   350   $ cat << EOF >> $HGRCPATH
   351   > [ui]
   351   > [rewrite]
   352   > history-editing-backup = False
   352   > backup-bundle = False
   353   > EOF
   353   > EOF
   354   $ echo fixed > b
   354   $ echo fixed > b
   355   $ hg amend
   355   $ hg amend
   356 
   356 
   357 #else
   357 #else
   358   $ hg amend
   358   $ hg amend
   359 When history-editing-backup config option is set:
   359 When backup-bundle config option is set:
   360   $ cat << EOF >> $HGRCPATH
   360   $ cat << EOF >> $HGRCPATH
   361   > [ui]
   361   > [rewrite]
   362   > history-editing-backup = False
   362   > backup-bundle = False
   363   > EOF
   363   > EOF
   364   $ echo fixed > b
   364   $ echo fixed > b
   365   $ hg amend
   365   $ hg amend
   366 
   366 
   367 #endif
   367 #endif