##// END OF EJS Templates
share: make it possible to control the working copy format variant...
share: make it possible to control the working copy format variant A share will use the same format as its source for the store, but there are no reason to not lets it control the working copy variant at creation time. So we make it so. Differential Revision: https://phab.mercurial-scm.org/D11892

File last commit:

r46719:3f82a915 default
r49297:bf2738e0 default
Show More
test-histedit-no-backup.t
80 lines | 2.1 KiB | text/troff | Tads3Lexer
/ tests / test-histedit-no-backup.t
Taapas Agrawal
abort: added support for histedit...
r42787 #testcases abortcommand abortflag
#if abortflag
$ cat >> $HGRCPATH <<EOF
> [alias]
> abort = histedit --abort
> EOF
#endif
Sushil khanchi
histedit: add --no-backup option (issue5825)...
r38566 $ . "$TESTDIR/histedit-helpers.sh"
Enable extension used by this test
$ cat >>$HGRCPATH <<EOF
> [extensions]
> histedit=
> EOF
Yuya Nishihara
repair: move ui.history-editing-backup to [rewrite] section...
r41242 =================================
Test backup-bundle config option|
=================================
Sushil khanchi
histedit: add --no-backup option (issue5825)...
r38566 Repo setup:
$ hg init foo
$ cd foo
$ echo first>file
$ hg ci -qAm one
$ echo second>>file
$ hg ci -m two
$ echo third>>file
$ hg ci -m three
$ echo forth>>file
$ hg ci -m four
$ hg log -G --style compact
@ 3[tip] 7d5187087c79 1970-01-01 00:00 +0000 test
| four
|
o 2 80d23dfa866d 1970-01-01 00:00 +0000 test
| three
|
o 1 6153eb23e623 1970-01-01 00:00 +0000 test
| two
|
o 0 36b4bdd91f5b 1970-01-01 00:00 +0000 test
one
Yuya Nishihara
repair: move ui.history-editing-backup to [rewrite] section...
r41242 Test when `backup-bundle` config option is enabled:
Sushil khanchi
histedit: add history-editing-backup config option...
r38756 $ hg histedit -r '36b4bdd91f5b' --commands - << EOF
> pick 36b4bdd91f5b 0 one
> pick 6153eb23e623 1 two
> roll 80d23dfa866d 2 three
> edit 7d5187087c79 3 four
> EOF
merging file
Augie Fackler
histedit: tweak `edit` message to try and guide users to our workflow...
r46719 Editing (7d5187087c79), commit as needed now to split the change
(to edit 7d5187087c79, `hg histedit --continue` after making changes)
Martin von Zweigbergk
errors: add config that lets user get more detailed exit codes...
r46430 [240]
Taapas Agrawal
abort: added support for histedit...
r42787 $ hg abort
Sushil khanchi
histedit: add history-editing-backup config option...
r38756 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
saved backup bundle to $TESTTMP/foo/.hg/strip-backup/1d8f701c7b35-cf7be322-backup.hg
saved backup bundle to $TESTTMP/foo/.hg/strip-backup/5c0056670bce-b54b65d0-backup.hg
Yuya Nishihara
repair: move ui.history-editing-backup to [rewrite] section...
r41242 Test when `backup-bundle` config option is not enabled
Sushil khanchi
histedit: add history-editing-backup config option...
r38756 Enable config option:
$ cat >>$HGRCPATH <<EOF
Yuya Nishihara
repair: move ui.history-editing-backup to [rewrite] section...
r41242 > [rewrite]
> backup-bundle = False
Sushil khanchi
histedit: add history-editing-backup config option...
r38756 > EOF
$ hg histedit -r '36b4bdd91f5b' --commands - << EOF
> pick 36b4bdd91f5b 0 one
> pick 6153eb23e623 1 two
> roll 80d23dfa866d 2 three
> edit 7d5187087c79 3 four
> EOF
merging file
Augie Fackler
histedit: tweak `edit` message to try and guide users to our workflow...
r46719 Editing (7d5187087c79), commit as needed now to split the change
(to edit 7d5187087c79, `hg histedit --continue` after making changes)
Martin von Zweigbergk
errors: add config that lets user get more detailed exit codes...
r46430 [240]
Taapas Agrawal
abort: added support for histedit...
r42787
$ hg abort
Sushil khanchi
histedit: add history-editing-backup config option...
r38756 1 files updated, 0 files merged, 0 files removed, 0 files unresolved