comparison tests/test-url-rev.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 392ed77879c3
children 6084926366b9
comparison
equal deleted inserted replaced
25110:c9f382c8233a 25111:1ef96a3b8b89
99 parent: 3:4cd725637392 tip 99 parent: 3:4cd725637392 tip
100 add bar 100 add bar
101 branch: default 101 branch: default
102 commit: (clean) 102 commit: (clean)
103 update: (current) 103 update: (current)
104 phases: 4 draft (draft)
104 remote: 2 outgoing 105 remote: 2 outgoing
105 $ hg -q outgoing '../clone#foo' 106 $ hg -q outgoing '../clone#foo'
106 2:faba9097cad4 107 2:faba9097cad4
107 $ hg summary --remote --config paths.default='../clone#foo' 108 $ hg summary --remote --config paths.default='../clone#foo'
108 parent: 3:4cd725637392 tip 109 parent: 3:4cd725637392 tip
109 add bar 110 add bar
110 branch: default 111 branch: default
111 commit: (clean) 112 commit: (clean)
112 update: (current) 113 update: (current)
114 phases: 4 draft (draft)
113 remote: 1 outgoing 115 remote: 1 outgoing
114 116
115 $ hg -q --cwd ../clone incoming '../repo#foo' 117 $ hg -q --cwd ../clone incoming '../repo#foo'
116 2:faba9097cad4 118 2:faba9097cad4
117 $ hg --cwd ../clone summary --remote --config paths.default='../repo#foo' 119 $ hg --cwd ../clone summary --remote --config paths.default='../repo#foo'
280 parent: 4:d515801a8f3d tip 282 parent: 4:d515801a8f3d tip
281 new head to push current default head 283 new head to push current default head
282 branch: default 284 branch: default
283 commit: (clean) 285 commit: (clean)
284 update: (current) 286 update: (current)
287 phases: 1 draft (draft)
285 remote: 1 outgoing 288 remote: 1 outgoing
286 289
287 $ hg summary --remote --config paths.default='../clone#foo' --config paths.default-push='../clone' 290 $ hg summary --remote --config paths.default='../clone#foo' --config paths.default-push='../clone'
288 parent: 4:d515801a8f3d tip 291 parent: 4:d515801a8f3d tip
289 new head to push current default head 292 new head to push current default head
290 branch: default 293 branch: default
291 commit: (clean) 294 commit: (clean)
292 update: (current) 295 update: (current)
296 phases: 1 draft (draft)
293 remote: 2 outgoing 297 remote: 2 outgoing
294 298
295 $ hg summary --remote --config paths.default='../clone' --config paths.default-push='../clone#foo' 299 $ hg summary --remote --config paths.default='../clone' --config paths.default-push='../clone#foo'
296 parent: 4:d515801a8f3d tip 300 parent: 4:d515801a8f3d tip
297 new head to push current default head 301 new head to push current default head
298 branch: default 302 branch: default
299 commit: (clean) 303 commit: (clean)
300 update: (current) 304 update: (current)
305 phases: 1 draft (draft)
301 remote: 1 outgoing 306 remote: 1 outgoing
302 307
303 $ hg clone -q -r 0 . ../another 308 $ hg clone -q -r 0 . ../another
304 $ hg -q outgoing '../another#default' 309 $ hg -q outgoing '../another#default'
305 3:4cd725637392 310 3:4cd725637392
309 parent: 4:d515801a8f3d tip 314 parent: 4:d515801a8f3d tip
310 new head to push current default head 315 new head to push current default head
311 branch: default 316 branch: default
312 commit: (clean) 317 commit: (clean)
313 update: (current) 318 update: (current)
319 phases: 1 draft (draft)
314 remote: 1 outgoing 320 remote: 1 outgoing
315 321
316 $ cd .. 322 $ cd ..