branch closing: referencing open and closed branches/heads
Treat fully closed branches similarly to "inactive" in the output of
'hg branches'. They will be suffixed with "(closed)" where inactive branches
are marked with "(inactive)". If the -a/--active option is given both
inactive and closed branches will not be shown.
Partially closed branches (multiple heads, at least one not closed)
will display the next (tipmost) open head.
Add -a/--active option to "hg heads" which will hide closed heads iff the
option is specified.
In other hg commands, when multiple branch heads exist the branch name will
refer to the tipmost open head, and if none exist, then the tipmost closed
head.
hg status in repo root:
[0;35;1;4m? a/1/in_a_1[0m
[0;35;1;4m? a/in_a[0m
[0;35;1;4m? b/1/in_b_1[0m
[0;35;1;4m? b/2/in_b_2[0m
[0;35;1;4m? b/in_b[0m
[0;35;1;4m? in_root[0m
hg status . in repo root:
[0;35;1;4m? a/1/in_a_1[0m
[0;35;1;4m? a/in_a[0m
[0;35;1;4m? b/1/in_b_1[0m
[0;35;1;4m? b/2/in_b_2[0m
[0;35;1;4m? b/in_b[0m
[0;35;1;4m? in_root[0m
hg status in a:
[0;35;1;4m? a/1/in_a_1[0m
[0;35;1;4m? a/in_a[0m
[0;35;1;4m? b/1/in_b_1[0m
[0;35;1;4m? b/2/in_b_2[0m
[0;35;1;4m? b/in_b[0m
[0;35;1;4m? in_root[0m
hg status . in a:
[0;35;1;4m? 1/in_a_1[0m
[0;35;1;4m? in_a[0m
hg status .. in a:
[0;35;1;4m? 1/in_a_1[0m
[0;35;1;4m? in_a[0m
[0;35;1;4m? ../b/1/in_b_1[0m
[0;35;1;4m? ../b/2/in_b_2[0m
[0;35;1;4m? ../b/in_b[0m
[0;35;1;4m? ../in_root[0m
hg status in b:
[0;35;1;4m? a/1/in_a_1[0m
[0;35;1;4m? a/in_a[0m
[0;35;1;4m? b/1/in_b_1[0m
[0;35;1;4m? b/2/in_b_2[0m
[0;35;1;4m? b/in_b[0m
[0;35;1;4m? in_root[0m
hg status . in b:
[0;35;1;4m? 1/in_b_1[0m
[0;35;1;4m? 2/in_b_2[0m
[0;35;1;4m? in_b[0m
hg status .. in b:
[0;35;1;4m? ../a/1/in_a_1[0m
[0;35;1;4m? ../a/in_a[0m
[0;35;1;4m? 1/in_b_1[0m
[0;35;1;4m? 2/in_b_2[0m
[0;35;1;4m? in_b[0m
[0;35;1;4m? ../in_root[0m
hg status in a/1:
[0;35;1;4m? a/1/in_a_1[0m
[0;35;1;4m? a/in_a[0m
[0;35;1;4m? b/1/in_b_1[0m
[0;35;1;4m? b/2/in_b_2[0m
[0;35;1;4m? b/in_b[0m
[0;35;1;4m? in_root[0m
hg status . in a/1:
[0;35;1;4m? in_a_1[0m
hg status .. in a/1:
[0;35;1;4m? in_a_1[0m
[0;35;1;4m? ../in_a[0m
hg status in b/1:
[0;35;1;4m? a/1/in_a_1[0m
[0;35;1;4m? a/in_a[0m
[0;35;1;4m? b/1/in_b_1[0m
[0;35;1;4m? b/2/in_b_2[0m
[0;35;1;4m? b/in_b[0m
[0;35;1;4m? in_root[0m
hg status . in b/1:
[0;35;1;4m? in_b_1[0m
hg status .. in b/1:
[0;35;1;4m? in_b_1[0m
[0;35;1;4m? ../2/in_b_2[0m
[0;35;1;4m? ../in_b[0m
hg status in b/2:
[0;35;1;4m? a/1/in_a_1[0m
[0;35;1;4m? a/in_a[0m
[0;35;1;4m? b/1/in_b_1[0m
[0;35;1;4m? b/2/in_b_2[0m
[0;35;1;4m? b/in_b[0m
[0;35;1;4m? in_root[0m
hg status . in b/2:
[0;35;1;4m? in_b_2[0m
hg status .. in b/2:
[0;35;1;4m? ../1/in_b_1[0m
[0;35;1;4m? in_b_2[0m
[0;35;1;4m? ../in_b[0m
adding .hgignore
adding deleted
adding modified
adding removed
hg status:
[0;32;1mA added[0m
[0;31;1mR removed[0m
[0;36;1;4m! deleted[0m
[0;35;1;4m? unknown[0m
hg status modified added removed deleted unknown never-existed ignored:
never-existed: No such file or directory
[0;32;1mA added[0m
[0;31;1mR removed[0m
[0;36;1;4m! deleted[0m
[0;35;1;4m? unknown[0m
hg status -C:
[0;32;1mA added[0m
[0;32;1mA copied[0m
[0;0m modified[0m
[0;31;1mR removed[0m
[0;36;1;4m! deleted[0m
[0;35;1;4m? unknown[0m
hg status -A:
[0;32;1mA added[0m
[0;32;1mA copied[0m
[0;0m modified[0m
[0;31;1mR removed[0m
[0;36;1;4m! deleted[0m
[0;35;1;4m? unknown[0m
[0;30;1mI ignored[0m
[0;0mC .hgignore[0m
[0;0mC modified[0m
hg status ignoreddir/file:
hg status -i ignoreddir/file:
[0;30;1mI ignoreddir/file[0m
adding .hgignore
adding deleted
adding modified
adding removed