comparison tests/test-show-work.t @ 34877:eb24f1d1b50b

show: use labelcset() template alias for work (and stack) views By reusing labelcset() template alias from map-cmdline.default we can now display obsolescence information in `hg show work/stack`.
author Denis Laxalde <denis@laxalde.org>
date Tue, 17 Oct 2017 20:25:43 +0200
parents e6b5e7329ff2
children 1a09dad8b85a
comparison
equal deleted inserted replaced
34876:eb1b964b354b 34877:eb24f1d1b50b
231 231
232 $ hg --config extensions.revnames=$TESTDIR/revnamesext.py show work 232 $ hg --config extensions.revnames=$TESTDIR/revnamesext.py show work
233 @ 32f3 (r2) commit 3 233 @ 32f3 (r2) commit 3
234 o 6a75 (r1) commit 2 234 o 6a75 (r1) commit 2
235 o 97fc (r0) commit 1 235 o 97fc (r0) commit 1
236
237 Obsolescence information appears in labels.
238
239 $ cat >> .hg/hgrc << EOF
240 > [experimental]
241 > evolution=createmarkers
242 > EOF
243 $ hg debugobsolete `hg log -r 'desc("commit 2")' -T "{node}"`
244 obsoleted 1 changesets
245 $ hg show work --color=debug
246 @ [log.changeset changeset.draft changeset.unstable instability.orphan|32f3] [log.description|commit 3]
247 x [log.changeset changeset.draft changeset.obsolete|6a75] [log.description|commit 2]
248 |
249 ~
236 250
237 $ cd .. 251 $ cd ..
238 252
239 Prefix collision on hashes increases shortest node length 253 Prefix collision on hashes increases shortest node length
240 254