comparison tests/test-topicmode.t @ 3028:c2d1f49ac7e2

topicmode: add 'random' topic mode That mode will generate a random topic name when the user is about to commit an untopiced changeset.
author Boris Feld <boris.feld@octobus.net>
date Sun, 01 Oct 2017 00:35:28 +0100
parents b220e2f5ebd5
children
comparison
equal deleted inserted replaced
3027:b220e2f5ebd5 3028:c2d1f49ac7e2
186 o changeset: 0:ec1d2790416d 186 o changeset: 0:ec1d2790416d
187 user: test 187 user: test
188 date: Thu Jan 01 00:00:00 1970 +0000 188 date: Thu Jan 01 00:00:00 1970 +0000
189 summary: ROOT 189 summary: ROOT
190 190
191 Testing the new config knob to use a random topic for untopic commit
192 ====================================================================
193
194 $ hg init $TESTTMP/test-untopic-random
195 $ cd $TESTTMP/test-untopic-random
196 $ cat <<EOF >> .hg/hgrc
197 > [phases]
198 > publish=false
199 > EOF
200 $ cat <<EOF >> $HGRCPATH
201 > [experimental]
202 > topic-mode = random
203 > EOF
204
205 $ touch ROOT
206 $ hg commit -A -m "ROOT" --config experimental.topic-mode=off
207 adding ROOT
208
209 $ touch A
210 $ hg add A
211 $ hg commit -m "Add A" --config devel.randomseed=42
212 active topic 'panoramic-antelope' grew its first changeset
213
214 $ hg up -r "desc(ROOT)"
215 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
216
217 $ touch B
218 $ hg add B
219 $ hg commit -m "Add B" --config devel.randomseed=128
220 active topic 'various-dove' grew its first changeset