Mercurial > hg
comparison tests/test-merge-default.t @ 28139:5476a7a039c0
destutil: allow to specify an explicit source for the merge
We can now specify from where the merge is performed. The experimental revset
is updated to take revisions as argument, allowing to test the feature.
This will become very useful for pick the 'rebase' default destination. For this
reason, we also exclude all descendants from the rebased set from the candidate
destinations. This descendants exclusion was not necessary for merge as default
destination would not be picked from anything else than a head.
I'm not super excited with the current error messages, but I would prefer to
delay an overall messages rework once 'hg rebase' is done getting a default
destination aligned with 'hg merge'.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Mon, 08 Feb 2016 19:32:29 +0100 |
parents | 7d852bb47b0a |
children | 1b5c61d38a52 |
comparison
equal
deleted
inserted
replaced
28138:5ad2017454ee | 28139:5476a7a039c0 |
---|---|
114 $ hg log -r '_destmerge()' | 114 $ hg log -r '_destmerge()' |
115 abort: branch 'foobranch' has one head - please merge with an explicit rev | 115 abort: branch 'foobranch' has one head - please merge with an explicit rev |
116 (run 'hg heads' to see all heads) | 116 (run 'hg heads' to see all heads) |
117 [255] | 117 [255] |
118 | 118 |
119 (on a branch with a two heads) | |
120 | |
121 $ hg up 5 | |
122 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
123 $ echo f >> a | |
124 $ hg commit -mf | |
125 created new head | |
126 $ hg log -r '_destmerge()' | |
127 changeset: 6:e88e33f3bf62 | |
128 parent: 5:a431fabd6039 | |
129 parent: 3:ea9ff125ff88 | |
130 user: test | |
131 date: Thu Jan 01 00:00:00 1970 +0000 | |
132 summary: m2 | |
133 | |
134 | |
135 (from the other head) | |
136 | |
137 $ hg log -r '_destmerge(e88e33f3bf62)' | |
138 changeset: 8:b613918999e2 | |
139 tag: tip | |
140 parent: 5:a431fabd6039 | |
141 user: test | |
142 date: Thu Jan 01 00:00:00 1970 +0000 | |
143 summary: f | |
144 | |
145 | |
146 (from unrelated branch) | |
147 | |
148 $ hg log -r '_destmerge(foobranch)' | |
149 abort: branch 'foobranch' has one head - please merge with an explicit rev | |
150 (run 'hg heads' to see all heads) | |
151 [255] |