comparison tests/test-strip.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 69154e0ae384
children 6084926366b9
comparison
equal deleted inserted replaced
25110:c9f382c8233a 25111:1ef96a3b8b89
524 parent: 1:76dcf9fab855 tip 524 parent: 1:76dcf9fab855 tip
525 b 525 b
526 branch: default 526 branch: default
527 commit: 1 modified, 1 unknown, 1 unresolved 527 commit: 1 modified, 1 unknown, 1 unresolved
528 update: (current) 528 update: (current)
529 phases: 2 draft (draft)
529 mq: 3 unapplied 530 mq: 3 unapplied
530 531
531 $ echo c > b 532 $ echo c > b
532 $ hg strip tip 533 $ hg strip tip
533 abort: local changes found 534 abort: local changes found
551 parent: 0:9ab35a2d17cb tip 552 parent: 0:9ab35a2d17cb tip
552 a 553 a
553 branch: default 554 branch: default
554 commit: 1 modified, 1 unknown 555 commit: 1 modified, 1 unknown
555 update: (current) 556 update: (current)
557 phases: 1 draft (draft)
556 mq: 3 unapplied 558 mq: 3 unapplied
557 559
558 Strip adds, removes, modifies with --keep 560 Strip adds, removes, modifies with --keep
559 561
560 $ touch b 562 $ touch b