comparison tests/test-up-local-change.t @ 23396:6a254a2dd37c

merge: separate out "both created" cases When 'f' is not in 'ma', 'a' will be 'nullid' and all the if/elif conditions that check whether some one nodeid is equal to 'a' will fail, and the else-clause will instead apply. We can make that more explicit by creating a separate 'm' action for the case where 'a' is 'nullid'. While it does mean copying some code, perhaps it makes it a little clearer which codepaths are possible, and which cases the "Note:" in the code refers to. It also lets us make the debug action messages a little more specific.
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 24 Nov 2014 16:16:34 -0800
parents cb15835456cb
children 48cdf90f17c5
comparison
equal deleted inserted replaced
23395:d9ebb475eede 23396:6a254a2dd37c
186 a: versions differ -> m 186 a: versions differ -> m
187 updating: a 1/2 files (50.00%) 187 updating: a 1/2 files (50.00%)
188 picked tool 'true' for a (binary False symlink False) 188 picked tool 'true' for a (binary False symlink False)
189 merging a 189 merging a
190 my a@1e71731e6fbb+ other a@83c51d0caff4 ancestor a@c19d34741b0a 190 my a@1e71731e6fbb+ other a@83c51d0caff4 ancestor a@c19d34741b0a
191 b: versions differ -> m 191 b: both created -> m
192 updating: b 2/2 files (100.00%) 192 updating: b 2/2 files (100.00%)
193 picked tool 'true' for b (binary False symlink False) 193 picked tool 'true' for b (binary False symlink False)
194 merging b 194 merging b
195 my b@1e71731e6fbb+ other b@83c51d0caff4 ancestor b@000000000000 195 my b@1e71731e6fbb+ other b@83c51d0caff4 ancestor b@000000000000
196 0 files updated, 2 files merged, 0 files removed, 0 files unresolved 196 0 files updated, 2 files merged, 0 files removed, 0 files unresolved