comparison tests/test-amend.t @ 38817:32ece991955c

amend: support "history-editing-backup" config option Now, amend is in the list of those history editing commands which support `history-editing-backup` config option. If you don't want to store any backup then just use this config. [ui] hisotry-editing-backup = False Current status of list of history editing commands which support this config: 1. histedit 2. rebase 3. amend Differential Revision: https://phab.mercurial-scm.org/D3968
author Sushil khanchi <sushilkhanchi97@gmail.com>
date Tue, 10 Jul 2018 20:23:55 +0530
parents 88e7105b5cd9
children 5abc47d4ca6b
comparison
equal deleted inserted replaced
38816:2b728789edfd 38817:32ece991955c
329 ? content1_missing_content1-untracked 329 ? content1_missing_content1-untracked
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
335 ==========================================
336 Test history-editing-backup config option|
337 ==========================================
338 $ hg init $TESTTMP/repo4
339 $ cd $TESTTMP/repo4
340 $ echo a>a
341 $ hg ci -Aqma
342 $ echo oops>b
343 $ hg ci -Aqm "b"
344 $ echo partiallyfixed > b
345
346 #if obsstore-off
347 $ hg amend
348 saved backup bundle to $TESTTMP/repo4/.hg/strip-backup/95e899acf2ce-f11cb050-amend.hg
349 When history-editing-backup config option is set:
350 $ cat << EOF >> $HGRCPATH
351 > [ui]
352 > history-editing-backup = False
353 > EOF
354 $ echo fixed > b
355 $ hg amend
356
357 #else
358 $ hg amend
359 When history-editing-backup config option is set:
360 $ cat << EOF >> $HGRCPATH
361 > [ui]
362 > history-editing-backup = False
363 > EOF
364 $ echo fixed > b
365 $ hg amend
366
367 #endif