comparison tests/test-histedit-arguments.t @ 24009:00d331763442

histedit: allow configuring default behavior Adds a configuration setting for allowing users to specify the default behavior of 'hg histedit' without arguments. This saves users from having to manually figure out the bottom commit or a complicated revset. My current revset of choice is "only(.) & draft() - ::merge()" The commits that histedit can work with is usually quite limited, so if this feature ends up working well, we may want to consider making "only(.) & draft() - ::merge()" the default behavior for everyone.
author Durham Goode <durham@fb.com>
date Mon, 02 Feb 2015 16:19:35 -0800
parents 897041f6b025
children 4dcd55802237
comparison
equal deleted inserted replaced
24007:240343e13c4d 24009:00d331763442
100 > pick c8e68270e35a 3 four 100 > pick c8e68270e35a 3 four
101 > pick 08d98a8350f3 4 five 101 > pick 08d98a8350f3 4 five
102 > EOF 102 > EOF
103 0 files updated, 0 files merged, 0 files removed, 0 files unresolved 103 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
104 $ hg up --quiet 104 $ hg up --quiet
105
106 Test config specified default
107 -----------------------------
108
109 $ HGEDITOR=cat hg histedit --config "histedit.defaultrev=only(.) - ::eb57da33312f" --commands - << EOF
110 > pick c8e68270e35a 3 four
111 > pick 08d98a8350f3 4 five
112 > EOF
113 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
105 114
106 Run on a revision not descendants of the initial parent 115 Run on a revision not descendants of the initial parent
107 -------------------------------------------------------------------- 116 --------------------------------------------------------------------
108 117
109 Test the message shown for inconsistent histedit state, which may be 118 Test the message shown for inconsistent histedit state, which may be