Show More
@@ -766,9 +766,37 b' def commit(ui, repo, *pats, **opts):' | |||||
766 | ctx = repo[node] |
|
766 | ctx = repo[node] | |
767 | parents = ctx.parents() |
|
767 | parents = ctx.parents() | |
768 |
|
768 | |||
769 | if bheads and [x for x in parents |
|
769 | if bheads and not [x for x in parents | |
770 |
if x.node() |
|
770 | if x.node() in bheads and x.branch() == branch]: | |
771 | ui.status(_('created new head\n')) |
|
771 | ui.status(_('created new head\n')) | |
|
772 | # The message is not printed for initial roots. For the other | |||
|
773 | # changesets, it is printed in the following situations: | |||
|
774 | # | |||
|
775 | # Par column: for the 2 parents with ... | |||
|
776 | # N: null or no parent | |||
|
777 | # B: parent is on another named branch | |||
|
778 | # C: parent is a regular non head changeset | |||
|
779 | # H: parent was a branch head of the current branch | |||
|
780 | # Msg column: whether we print "created new head" message | |||
|
781 | # In the following, it is assumed that there already exists some | |||
|
782 | # initial branch heads of the current branch, otherwise nothing is | |||
|
783 | # printed anyway. | |||
|
784 | # | |||
|
785 | # Par Msg Comment | |||
|
786 | # NN y additional topo root | |||
|
787 | # | |||
|
788 | # BN y additional branch root | |||
|
789 | # CN y additional topo head | |||
|
790 | # HN n usual case | |||
|
791 | # | |||
|
792 | # BB y weird additional branch root | |||
|
793 | # CB y branch merge | |||
|
794 | # HB n merge with named branch | |||
|
795 | # | |||
|
796 | # CC y additional head from merge | |||
|
797 | # CH n merge with a head | |||
|
798 | # | |||
|
799 | # HH n head merge: head count decreases | |||
772 |
|
800 | |||
773 | if not opts.get('close_branch'): |
|
801 | if not opts.get('close_branch'): | |
774 | for r in parents: |
|
802 | for r in parents: |
@@ -73,6 +73,7 b' adding file1' | |||||
73 | marked working directory as branch branch2 |
|
73 | marked working directory as branch branch2 | |
74 | adding file2 |
|
74 | adding file2 | |
75 | removing file1 |
|
75 | removing file1 | |
|
76 | created new head | |||
76 | changeset 3:d4e8f6db59fb backs out changeset 1:bf1602f437f3 |
|
77 | changeset 3:d4e8f6db59fb backs out changeset 1:bf1602f437f3 | |
77 | the backout changeset is a new head - do not forget to merge |
|
78 | the backout changeset is a new head - do not forget to merge | |
78 | (use "backout --merge" if you want to auto-merge) |
|
79 | (use "backout --merge" if you want to auto-merge) |
@@ -17,6 +17,7 b' 1 files updated, 0 files merged, 0 files' | |||||
17 | marked working directory as branch æ |
|
17 | marked working directory as branch æ | |
18 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
18 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
19 | marked working directory as branch b |
|
19 | marked working directory as branch b | |
|
20 | created new head | |||
20 | in rev c branch a |
|
21 | in rev c branch a | |
21 | 1:dd6e60a716c6 |
|
22 | 1:dd6e60a716c6 | |
22 | 2:f25d57ab0566 |
|
23 | 2:f25d57ab0566 |
@@ -182,6 +182,7 b' marked working directory as branch secon' | |||||
182 | adding b |
|
182 | adding b | |
183 | marked working directory as branch default |
|
183 | marked working directory as branch default | |
184 | adding c |
|
184 | adding c | |
|
185 | created new head | |||
185 | updating to branch default |
|
186 | updating to branch default | |
186 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
187 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
187 | % fetch should succeed |
|
188 | % fetch should succeed |
@@ -4,6 +4,7 b' marked working directory as branch bar' | |||||
4 | % branch shadowing |
|
4 | % branch shadowing | |
5 | abort: a branch of the same name already exists (use 'hg update' to switch to it) |
|
5 | abort: a branch of the same name already exists (use 'hg update' to switch to it) | |
6 | marked working directory as branch default |
|
6 | marked working directory as branch default | |
|
7 | created new head | |||
7 | % there should be only one default branch head |
|
8 | % there should be only one default branch head | |
8 | changeset: 3:bf1bc2f45e83 |
|
9 | changeset: 3:bf1bc2f45e83 | |
9 | tag: tip |
|
10 | tag: tip |
@@ -279,8 +279,10 b' updating to branch B' | |||||
279 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
279 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
280 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
280 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
281 | marked working directory as branch B |
|
281 | marked working directory as branch B | |
|
282 | created new head | |||
282 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
283 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
283 | marked working directory as branch A |
|
284 | marked working directory as branch A | |
|
285 | created new head | |||
284 | %% glog of local |
|
286 | %% glog of local | |
285 | @ 5: A b3 |
|
287 | @ 5: A b3 | |
286 | | |
|
288 | | |
@@ -90,7 +90,6 b' path t' | |||||
90 | source t |
|
90 | source t | |
91 | revision 6747d179aa9a688023c4b0cad32e4c92bb7f34ad |
|
91 | revision 6747d179aa9a688023c4b0cad32e4c92bb7f34ad | |
92 | committing subrepository t |
|
92 | committing subrepository t | |
93 | created new head |
|
|||
94 | searching for copies back to rev 2 |
|
93 | searching for copies back to rev 2 | |
95 | resolving manifests |
|
94 | resolving manifests | |
96 | overwrite None partial False |
|
95 | overwrite None partial False |
General Comments 0
You need to be logged in to leave comments.
Login now