Mercurial > hg
comparison tests/test-bookmarks.t @ 25111:1ef96a3b8b89
summary: add a phase line (draft, secret) to the output
The number of draft and secret changesets are currently not summarized.
This is an important information because the number of drafts give some rough
idea of the number of outgoing changesets in typical workflows, without needing
to probe a remote repository. And a non-zero number of secrets means that
those changeset will not be pushed.
If the repository is "dirty" - some draft or secret changesets exists - then
summary will display a line like:
phases: X draft, Y secret (public)
The phase in parenthesis corresponds to the highest phase of the parents of
the working directory, i.e. the current phase.
By default, the line is not printed if the repository is "clean" - all
changesets are public - but if verbose is activated, it will display:
phases: (public)
On the other hand, nothing will be printed if quiet is in action.
A few tests have been added in test-phases.t to cover the -v and -q cases.
author | Gilles Moris <gilles.moris@free.fr> |
---|---|
date | Thu, 14 May 2015 17:38:38 +0200 |
parents | eeb5d5ab14a6 |
children | 62da2d7745f9 |
comparison
equal
deleted
inserted
replaced
25110:c9f382c8233a | 25111:1ef96a3b8b89 |
---|---|
391 2 | 391 2 |
392 branch: default | 392 branch: default |
393 bookmarks: *Z Y x y | 393 bookmarks: *Z Y x y |
394 commit: (clean) | 394 commit: (clean) |
395 update: 1 new changesets, 2 branch heads (merge) | 395 update: 1 new changesets, 2 branch heads (merge) |
396 phases: 3 draft (draft) | |
396 | 397 |
397 test id | 398 test id |
398 | 399 |
399 $ hg id | 400 $ hg id |
400 db815d6d32e6 tip Y/Z/x y | 401 db815d6d32e6 tip Y/Z/x y |
536 2 | 537 2 |
537 branch: default | 538 branch: default |
538 bookmarks: *Z Y x y | 539 bookmarks: *Z Y x y |
539 commit: 1 added, 1 unknown (new branch head) | 540 commit: 1 added, 1 unknown (new branch head) |
540 update: 2 new changesets (update) | 541 update: 2 new changesets (update) |
542 phases: 5 draft (draft) | |
541 $ hg update | 543 $ hg update |
542 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 544 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
543 updating bookmark Z | 545 updating bookmark Z |
544 $ hg bookmarks | 546 $ hg bookmarks |
545 X2 1:925d80f479bb | 547 X2 1:925d80f479bb |