Mercurial > hg
comparison tests/test-largefiles.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 | 9d5c27890790 |
children | 4b61521c3db0 |
comparison
equal
deleted
inserted
replaced
25110:c9f382c8233a | 25111:1ef96a3b8b89 |
---|---|
65 parent: 1:ce8896473775 tip | 65 parent: 1:ce8896473775 tip |
66 edit files | 66 edit files |
67 branch: default | 67 branch: default |
68 commit: (clean) | 68 commit: (clean) |
69 update: (current) | 69 update: (current) |
70 phases: 2 draft (draft) | |
70 largefiles: (no remote repo) | 71 largefiles: (no remote repo) |
71 | 72 |
72 Commit preserved largefile contents. | 73 Commit preserved largefile contents. |
73 | 74 |
74 $ cat normal1 | 75 $ cat normal1 |
997 parent: 0:30d30fe6a5be | 998 parent: 0:30d30fe6a5be |
998 add files | 999 add files |
999 branch: default | 1000 branch: default |
1000 commit: (clean) | 1001 commit: (clean) |
1001 update: 7 new changesets (update) | 1002 update: 7 new changesets (update) |
1003 phases: 8 draft (draft) | |
1002 | 1004 |
1003 $ rm "${USERCACHE}"/* | 1005 $ rm "${USERCACHE}"/* |
1004 $ hg clone --all-largefiles -u 1 a a-clone1 | 1006 $ hg clone --all-largefiles -u 1 a a-clone1 |
1005 updating to branch default | 1007 updating to branch default |
1006 getting changed largefiles | 1008 getting changed largefiles |
1019 parent: 1:ce8896473775 | 1021 parent: 1:ce8896473775 |
1020 edit files | 1022 edit files |
1021 branch: default | 1023 branch: default |
1022 commit: (clean) | 1024 commit: (clean) |
1023 update: 6 new changesets (update) | 1025 update: 6 new changesets (update) |
1026 phases: 8 draft (draft) | |
1024 | 1027 |
1025 $ rm "${USERCACHE}"/* | 1028 $ rm "${USERCACHE}"/* |
1026 $ hg clone --all-largefiles -U a a-clone-u | 1029 $ hg clone --all-largefiles -U a a-clone-u |
1027 11 additional largefiles cached | 1030 11 additional largefiles cached |
1028 $ hg -R a-clone-u sum | 1031 $ hg -R a-clone-u sum |
1029 parent: -1:000000000000 (no revision checked out) | 1032 parent: -1:000000000000 (no revision checked out) |
1030 branch: default | 1033 branch: default |
1031 commit: (clean) | 1034 commit: (clean) |
1032 update: 8 new changesets (update) | 1035 update: 8 new changesets (update) |
1036 phases: 8 draft (public) | |
1033 | 1037 |
1034 Show computed destination directory: | 1038 Show computed destination directory: |
1035 | 1039 |
1036 $ mkdir xyz | 1040 $ mkdir xyz |
1037 $ cd xyz | 1041 $ cd xyz |