comparison tests/test-commit.t @ 18538:94317c2d53b8

commit: show active bookmark in commit editor helper text If there is an active bookmark while committing, the bookmark name will be visible inside the commit message helper, below the branch name. This should make easier for the user to detect a mistaken commit parent, while working for example with a bookmark centric workflow like topic branches. The active bookmark is checked to be in the working directory, as pointed by Kevin Bullock, because otherwise committing would not advance it. In other words, this would not show the active bookmark name if the user changed the working tree parents with 'hg debugsetparents', for example.
author Antonio Zanardo <zanardo@gmail.com>
date Sat, 02 Feb 2013 15:37:17 -0200
parents b87acfda5268
children b93791e0de25 f042d4b263f4
comparison
equal deleted inserted replaced
18537:ae60735e37d2 18538:94317c2d53b8
261 261
262 $ hg init commitmsg 262 $ hg init commitmsg
263 $ cd commitmsg 263 $ cd commitmsg
264 $ echo changed > changed 264 $ echo changed > changed
265 $ echo removed > removed 265 $ echo removed > removed
266 $ hg book currentbookmark
266 $ hg ci -qAm init 267 $ hg ci -qAm init
267 268
268 $ hg rm removed 269 $ hg rm removed
269 $ echo changed >> changed 270 $ echo changed >> changed
270 $ echo added > added 271 $ echo added > added
275 HG: Enter commit message. Lines beginning with 'HG:' are removed. 276 HG: Enter commit message. Lines beginning with 'HG:' are removed.
276 HG: Leave message empty to abort commit. 277 HG: Leave message empty to abort commit.
277 HG: -- 278 HG: --
278 HG: user: test 279 HG: user: test
279 HG: branch 'default' 280 HG: branch 'default'
281 HG: bookmark 'currentbookmark'
280 HG: added added 282 HG: added added
281 HG: changed changed 283 HG: changed changed
282 HG: removed removed 284 HG: removed removed
283 abort: empty commit message 285 abort: empty commit message
284 [255] 286 [255]