##// END OF EJS Templates
interfaces: convert `repository.irevisiondelta` from zope `Attribute` attrs...
interfaces: convert `repository.irevisiondelta` from zope `Attribute` attrs This is the same transformation as b455dfddfed0 did for dirstate.

File last commit:

r52801:16efed18 default
r53366:2aada52e default
Show More
test-rebase-conflicts.t
500 lines | 12.4 KiB | text/troff | Tads3Lexer
/ tests / test-rebase-conflicts.t
Adrian Buehlmann
tests: unify test-rebase*
r12608 $ cat >> $HGRCPATH <<EOF
> [extensions]
> rebase=
Jun Wu
test-rebase-conflicts: add a test case about turning obsstore on and off...
r33034 > drawdag=$TESTDIR/drawdag.py
Adrian Buehlmann
tests: unify test-rebase*
r12608 >
Pierre-Yves David
phases: prevent rebase to rebase immutable changeset.
r15742 > [phases]
> publish=False
>
Adrian Buehlmann
tests: unify test-rebase*
r12608 > [alias]
Durham Goode
rebase: restore active bookmark after rebase --continue...
r18755 > tglog = log -G --template "{rev}:{phase} '{desc}' {branches} {bookmarks}\n"
Adrian Buehlmann
tests: unify test-rebase*
r12608 > EOF
$ hg init a
$ cd a
$ echo c1 >common
$ hg add common
$ hg ci -m C1
$ echo c2 >>common
$ hg ci -m C2
$ echo c3 >>common
$ hg ci -m C3
$ hg up -q -C 1
$ echo l1 >>extra
$ hg add extra
$ hg ci -m L1
created new head
$ sed -e 's/c2/l2/' common > common.new
$ mv common.new common
$ hg ci -m L2
$ echo l3 >> extra2
$ hg add extra2
$ hg ci -m L3
Durham Goode
rebase: restore active bookmark after rebase --continue...
r18755 $ hg bookmark mybook
Adrian Buehlmann
tests: unify test-rebase*
r12608
Alain Leufroy <alain.leufroyATgmailMYDOTcom>
rebase: fix phases movement...
r15917 $ hg phase --force --secret 4
Adrian Buehlmann
tests: unify test-rebase*
r12608 $ hg tglog
Durham Goode
rebase: restore active bookmark after rebase --continue...
r18755 @ 5:secret 'L3' mybook
Adrian Buehlmann
tests: unify test-rebase*
r12608 |
Alain Leufroy <alain.leufroyATgmailMYDOTcom>
rebase: fix phases movement...
r15917 o 4:secret 'L2'
Adrian Buehlmann
tests: unify test-rebase*
r12608 |
Alain Leufroy <alain.leufroyATgmailMYDOTcom>
rebase: fix phases movement...
r15917 o 3:draft 'L1'
Adrian Buehlmann
tests: unify test-rebase*
r12608 |
Alain Leufroy <alain.leufroyATgmailMYDOTcom>
rebase: fix phases movement...
r15917 | o 2:draft 'C3'
Adrian Buehlmann
tests: unify test-rebase*
r12608 |/
Alain Leufroy <alain.leufroyATgmailMYDOTcom>
rebase: fix phases movement...
r15917 o 1:draft 'C2'
Adrian Buehlmann
tests: unify test-rebase*
r12608 |
Alain Leufroy <alain.leufroyATgmailMYDOTcom>
rebase: fix phases movement...
r15917 o 0:draft 'C1'
Adrian Buehlmann
tests: unify test-rebase*
r12608
Try to call --continue:
$ hg rebase --continue
abort: no rebase in progress
Martin von Zweigbergk
errors: introduce StateError and use it from commands and cmdutil...
r46444 [20]
Adrian Buehlmann
tests: unify test-rebase*
r12608
Conflicting rebase:
$ hg rebase -s 3 -d 2
Mads Kiilerich
rebase: show more useful status information while rebasing...
r23517 rebasing 3:3163e20567cc "L1"
rebasing 4:46f0b057b5c0 "L2"
Adrian Buehlmann
tests: unify test-rebase*
r12608 merging common
Siddharth Agarwal
simplemerge: move conflict warning message to filemerge...
r26614 warning: conflicts while merging common! (edit, then use 'hg resolve --mark')
Daniel Ploch
error: unify the error message formats for 'rebase' and 'unshelve'...
r45710 unresolved conflicts (see 'hg resolve', then 'hg rebase --continue')
Martin von Zweigbergk
errors: add config that lets user get more detailed exit codes...
r46430 [240]
Adrian Buehlmann
tests: unify test-rebase*
r12608
Pulkit Goyal
morestatus: move fb extension to core by plugging to `hg status --verbose`...
r33766 $ hg status --config commands.status.verbose=1
M common
? common.orig
# The repository is in an unfinished *rebase* state.
# Unresolved merge conflicts:
#
# common
#
# To mark files as resolved: hg resolve --mark FILE
Pulkit Goyal
morestatus: remove some extra spaces...
r38360 # To continue: hg rebase --continue
# To abort: hg rebase --abort
Taapas Agrawal
statecheck: added support for STATES...
r42732 # To stop: hg rebase --stop
Pulkit Goyal
morestatus: move fb extension to core by plugging to `hg status --verbose`...
r33766
Adrian Buehlmann
tests: unify test-rebase*
r12608 Try to continue without solving the conflict:
Mads Kiilerich
check-code: fix check for trailing whitespace on sh command lines...
r17345 $ hg rebase --continue
timeless
localrepo: use single quotes in use warning
r29975 abort: unresolved merge conflicts (see 'hg help resolve')
Martin von Zweigbergk
errors: raise StateError when there are unresolves merge conflicts...
r46528 [20]
Adrian Buehlmann
tests: unify test-rebase*
r12608
Conclude rebase:
$ echo 'resolved merge' >common
$ hg resolve -m common
Pierre-Yves David
resolve: add parenthesis around "no more unresolved files" message...
r21947 (no more unresolved files)
timeless
rebase: hook afterresolvedstates
r27626 continue: hg rebase --continue
Adrian Buehlmann
tests: unify test-rebase*
r12608 $ hg rebase --continue
Mads Kiilerich
rebase: show more useful status information while rebasing...
r23517 already rebased 3:3163e20567cc "L1" as 3e046f2ecedb
rebasing 4:46f0b057b5c0 "L2"
Martin von Zweigbergk
rebase: change and standarize template for rebase's one-line summary...
r46356 rebasing 5:8029388f38dc mybook "L3"
Matt Harbison
tests: remove (glob) annotations that were only for '\' matches...
r35394 saved backup bundle to $TESTTMP/a/.hg/strip-backup/3163e20567cc-5ca4656e-rebase.hg
Adrian Buehlmann
tests: unify test-rebase*
r12608
$ hg tglog
Durham Goode
rebase: restore active bookmark after rebase --continue...
r18755 @ 5:secret 'L3' mybook
Adrian Buehlmann
tests: unify test-rebase*
r12608 |
Alain Leufroy <alain.leufroyATgmailMYDOTcom>
rebase: fix phases movement...
r15917 o 4:secret 'L2'
Adrian Buehlmann
tests: unify test-rebase*
r12608 |
Alain Leufroy <alain.leufroyATgmailMYDOTcom>
rebase: fix phases movement...
r15917 o 3:draft 'L1'
Adrian Buehlmann
tests: unify test-rebase*
r12608 |
Alain Leufroy <alain.leufroyATgmailMYDOTcom>
rebase: fix phases movement...
r15917 o 2:draft 'C3'
Adrian Buehlmann
tests: unify test-rebase*
r12608 |
Alain Leufroy <alain.leufroyATgmailMYDOTcom>
rebase: fix phases movement...
r15917 o 1:draft 'C2'
Adrian Buehlmann
tests: unify test-rebase*
r12608 |
Alain Leufroy <alain.leufroyATgmailMYDOTcom>
rebase: fix phases movement...
r15917 o 0:draft 'C1'
Adrian Buehlmann
tests: unify test-rebase*
r12608
Check correctness:
$ hg cat -r 0 common
c1
$ hg cat -r 1 common
c1
c2
$ hg cat -r 2 common
c1
c2
c3
$ hg cat -r 3 common
c1
c2
c3
$ hg cat -r 4 common
resolved merge
$ hg cat -r 5 common
resolved merge
Durham Goode
rebase: restore active bookmark after rebase --continue...
r18755 Bookmark stays active after --continue
$ hg bookmarks
* mybook 5:d67b21408fc0
Mads Kiilerich
tests: add missing trailing 'cd ..'...
r16913 $ cd ..
Pierre-Yves David
rebase: fix selection of base used when rebasing merge (issue4041)...
r19969
Check that the right ancestors is used while rebasing a merge (issue4041)
Gregory Szorc
tests: use `hg unbundle` instead of `hg pull` in some tests...
r37354 $ hg init issue4041
$ cd issue4041
$ hg unbundle "$TESTDIR/bundles/issue4041.hg"
Pierre-Yves David
rebase: fix selection of base used when rebasing merge (issue4041)...
r19969 adding changesets
adding manifests
adding file changes
added 11 changesets with 8 changes to 3 files (+1 heads)
Boris Feld
phase: report number of non-public changeset alongside the new range...
r39516 new changesets 24797d4f68de:2f2496ddf49d (11 drafts)
Gregory Szorc
tests: use `hg unbundle` instead of `hg pull` in some tests...
r37354 (run 'hg heads' to see heads)
$ hg up default
Pierre-Yves David
rebase: fix selection of base used when rebasing merge (issue4041)...
r19969 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ hg log -G
o changeset: 10:2f2496ddf49d
|\ branch: f1
| | tag: tip
| | parent: 7:4c9fbe56a16f
| | parent: 9:e31216eec445
| | user: szhang
| | date: Thu Sep 05 12:59:39 2013 -0400
| | summary: merge
| |
| o changeset: 9:e31216eec445
| | branch: f1
| | user: szhang
| | date: Thu Sep 05 12:59:10 2013 -0400
| | summary: more changes to f1
| |
| o changeset: 8:8e4e2c1a07ae
| |\ branch: f1
| | | parent: 2:4bc80088dc6b
| | | parent: 6:400110238667
| | | user: szhang
| | | date: Thu Sep 05 12:57:59 2013 -0400
| | | summary: bad merge
| | |
o | | changeset: 7:4c9fbe56a16f
|/ / branch: f1
| | parent: 2:4bc80088dc6b
| | user: szhang
| | date: Thu Sep 05 12:54:00 2013 -0400
| | summary: changed f1
| |
| o changeset: 6:400110238667
| | branch: f2
| | parent: 4:12e8ec6bb010
| | user: szhang
| | date: Tue Sep 03 13:58:02 2013 -0400
| | summary: changed f2 on f2
| |
| | @ changeset: 5:d79e2059b5c0
| | | parent: 3:8a951942e016
| | | user: szhang
| | | date: Tue Sep 03 13:57:39 2013 -0400
| | | summary: changed f2 on default
| | |
| o | changeset: 4:12e8ec6bb010
| |/ branch: f2
| | user: szhang
| | date: Tue Sep 03 13:57:18 2013 -0400
| | summary: created f2 branch
| |
| o changeset: 3:8a951942e016
| | parent: 0:24797d4f68de
| | user: szhang
| | date: Tue Sep 03 13:57:11 2013 -0400
| | summary: added f2.txt
| |
o | changeset: 2:4bc80088dc6b
| | branch: f1
| | user: szhang
| | date: Tue Sep 03 13:56:20 2013 -0400
| | summary: added f1.txt
| |
o | changeset: 1:ef53c9e6b608
|/ branch: f1
| user: szhang
| date: Tue Sep 03 13:55:26 2013 -0400
| summary: created f1 branch
|
o changeset: 0:24797d4f68de
user: szhang
date: Tue Sep 03 13:55:08 2013 -0400
summary: added default.txt
$ hg rebase -s9 -d2 --debug # use debug to really check merge base used
Martin von Zweigbergk
rebase: make debug logging more consistent...
r29936 rebase onto 4bc80088dc6b starting from e31216eec445
Phil Cohen
tests: add a simple test for in-memory rebase...
r35385 rebasing on disk
Durham Goode
rebase: allow aborting if last-message.txt is missing...
r31225 rebase status stored
Mads Kiilerich
rebase: show more useful status information while rebasing...
r23517 rebasing 9:e31216eec445 "more changes to f1"
Pierre-Yves David
rebase: fix selection of base used when rebasing merge (issue4041)...
r19969 future parents are 2 and -1
update to 2:4bc80088dc6b
resolving manifests
branchmerge: False, force: True, partial: False
ancestor: d79e2059b5c0+, local: d79e2059b5c0+, remote: 4bc80088dc6b
f2.txt: other deleted -> r
removing f2.txt
Mads Kiilerich
merge: change debug logging - test output changes but no real changes...
r21391 f1.txt: remote created -> g
Pierre-Yves David
rebase: fix selection of base used when rebasing merge (issue4041)...
r19969 getting f1.txt
merge against 9:e31216eec445
detach base 8:8e4e2c1a07ae
resolving manifests
branchmerge: True, force: True, partial: False
ancestor: 8e4e2c1a07ae, local: 4bc80088dc6b+, remote: e31216eec445
f1.txt: remote is newer -> g
getting f1.txt
Mads Kiilerich
localrepo: show headline notes in commitctx before showing filenames...
r23749 committing files:
Pierre-Yves David
rebase: fix selection of base used when rebasing merge (issue4041)...
r19969 f1.txt
Mads Kiilerich
localrepo: show headline notes in commitctx before showing filenames...
r23749 committing manifest
committing changelog
Martin von Zweigbergk
merge with stable
r33140 updating the branch cache
Mads Kiilerich
rebase: improve debug messages while processing the list of rebases
r23519 rebased as 19c888675e13
Martin von Zweigbergk
rebase: store rebase state after each commit...
r37050 rebase status stored
Martin von Zweigbergk
rebase: change and standarize template for rebase's one-line summary...
r46356 rebasing 10:2f2496ddf49d tip "merge"
Pierre-Yves David
rebase: fix selection of base used when rebasing merge (issue4041)...
r19969 future parents are 11 and 7
Martin von Zweigbergk
rebase: rename "target" to "destination" in messages...
r32249 already in destination
Pierre-Yves David
rebase: fix selection of base used when rebasing merge (issue4041)...
r19969 merge against 10:2f2496ddf49d
detach base 9:e31216eec445
resolving manifests
branchmerge: True, force: True, partial: False
ancestor: e31216eec445, local: 19c888675e13+, remote: 2f2496ddf49d
f1.txt: remote is newer -> g
getting f1.txt
Mads Kiilerich
localrepo: show headline notes in commitctx before showing filenames...
r23749 committing files:
Pierre-Yves David
rebase: fix selection of base used when rebasing merge (issue4041)...
r19969 f1.txt
Mads Kiilerich
localrepo: show headline notes in commitctx before showing filenames...
r23749 committing manifest
committing changelog
Martin von Zweigbergk
merge with stable
r33140 updating the branch cache
Pulkit Goyal
commit: reorder if-else conditional to give mergestate info priority...
r47437 rebased as c1ffa3b5274e
Martin von Zweigbergk
rebase: store rebase state after each commit...
r37050 rebase status stored
Pierre-Yves David
rebase: fix selection of base used when rebasing merge (issue4041)...
r19969 rebase merging completed
update back to initial working directory parent
resolving manifests
branchmerge: False, force: False, partial: False
Pulkit Goyal
commit: reorder if-else conditional to give mergestate info priority...
r47437 ancestor: c1ffa3b5274e, local: c1ffa3b5274e+, remote: d79e2059b5c0
Pierre-Yves David
rebase: fix selection of base used when rebasing merge (issue4041)...
r19969 f1.txt: other deleted -> r
removing f1.txt
Mads Kiilerich
merge: change debug logging - test output changes but no real changes...
r21391 f2.txt: remote created -> g
Pierre-Yves David
rebase: fix selection of base used when rebasing merge (issue4041)...
r19969 getting f2.txt
Pierre-Yves David
changegroup: properly compute common base in changeggroupsubset (issue4736)...
r25677 2 changesets found
Pierre-Yves David
rebase: fix selection of base used when rebasing merge (issue4041)...
r19969 list of changesets:
e31216eec445e44352c5f01588856059466a24c9
2f2496ddf49d69b5ef23ad8cf9fb2e0e4faf0ac2
Boris Feld
bundle: include advisory rev branch cache part in bundle2 bundle...
r36983 bundle2-output-bundle: "HG20", (1 params) 3 parts total
Gregory Szorc
bundle2: store changeset count when creating file bundles...
r29593 bundle2-output-part: "changegroup" (params: 1 mandatory 1 advisory) streamed payload
Boris Feld
bundle2: mark the bundle2 part as advisory (issue5872)...
r37920 bundle2-output-part: "cache:rev-branch-cache" (advisory) streamed payload
Martin von Zweigbergk
strip: include phases in bundle (BC)...
r33032 bundle2-output-part: "phase-heads" 24 bytes payload
Matt Harbison
tests: remove (glob) annotations that were only for '\' matches...
r35394 saved backup bundle to $TESTTMP/issue4041/.hg/strip-backup/e31216eec445-15f7a814-rebase.hg
outgoing: fix common-heads computation from `missingroots` argument...
r51207 2 changesets found
Pierre-Yves David
rebase: fix selection of base used when rebasing merge (issue4041)...
r19969 list of changesets:
19c888675e133ab5dff84516926a65672eaf04d9
Pulkit Goyal
commit: reorder if-else conditional to give mergestate info priority...
r47437 c1ffa3b5274e92a9388fe782854e295d2e8d0443
Boris Feld
bundle: include advisory rev branch cache part in bundle2 bundle...
r36983 bundle2-output-bundle: "HG20", 3 parts total
Gregory Szorc
bundle2: store changeset count when creating file bundles...
r29593 bundle2-output-part: "changegroup" (params: 1 mandatory 1 advisory) streamed payload
Boris Feld
bundle2: mark the bundle2 part as advisory (issue5872)...
r37920 bundle2-output-part: "cache:rev-branch-cache" (advisory) streamed payload
Martin von Zweigbergk
strip: include phases in bundle (BC)...
r33032 bundle2-output-part: "phase-heads" 24 bytes payload
Pierre-Yves David
rebase: fix selection of base used when rebasing merge (issue4041)...
r19969 adding branch
Pierre-Yves David
test: use generaldelta in 'test-rebase-conflict.t'...
r26922 bundle2-input-bundle: with-transaction
Gregory Szorc
bundle2: store changeset count when creating file bundles...
r29593 bundle2-input-part: "changegroup" (params: 1 mandatory 1 advisory) supported
Pierre-Yves David
rebase: fix selection of base used when rebasing merge (issue4041)...
r19969 adding changesets
add changeset 19c888675e13
Pulkit Goyal
commit: reorder if-else conditional to give mergestate info priority...
r47437 add changeset c1ffa3b5274e
Pierre-Yves David
rebase: fix selection of base used when rebasing merge (issue4041)...
r19969 adding manifests
adding file changes
adding f1.txt revisions
outgoing: fix common-heads computation from `missingroots` argument...
r51207 bundle2-input-part: total payload size 1255
Boris Feld
bundle2: mark the bundle2 part as advisory (issue5872)...
r37920 bundle2-input-part: "cache:rev-branch-cache" (advisory) supported
outgoing: fix common-heads computation from `missingroots` argument...
r51207 bundle2-input-part: total payload size 54
Martin von Zweigbergk
strip: include phases in bundle (BC)...
r33032 bundle2-input-part: "phase-heads" supported
bundle2-input-part: total payload size 24
Martin von Zweigbergk
bundle2: fix an off-by-one in debug message of number of parts...
r43201 bundle2-input-bundle: 3 parts total
rev-branch-cache: schedule a write of the "v2" format if we read from "v1"...
r52801 resetting content of rbc-names-v2
changegroup: move message about added changes to transaction summary...
r43167 added 2 changesets with 2 changes to 1 files
Pierre-Yves David
caches: move the 'updating the branch cache' message in 'updatecaches'...
r32267 updating the branch cache
Martin von Zweigbergk
py3: fix formatting of branchmap log messages with repo.filtername=None...
r42805 invalid branch cache (served): tip differs
rev-branch-cache: add a way to force rewrite of the cache...
r52796 history modification detected - truncating revision branch cache to revision 1
Martin von Zweigbergk
py3: fix formatting of branchmap log messages with repo.filtername=None...
r42805 invalid branch cache (served.hidden): tip differs
Pierre-Yves David
rebase: fix selection of base used when rebasing merge (issue4041)...
r19969 rebase completed
rev-branch-cache: increment the version to "v2"...
r52799 resetting content of cache/rbc-revs-v2
Ryan McElroy
merge: minimize conflicts when common base is not shown (issue4447)...
r28072
Test minimization of merge conflicts
$ hg up -q null
$ echo a > a
$ hg add a
$ hg commit -q -m 'a'
$ echo b >> a
$ hg commit -q -m 'ab'
$ hg bookmark ab
$ hg up -q '.^'
$ echo b >> a
$ echo c >> a
$ hg commit -q -m 'abc'
$ hg rebase -s 7bc217434fc1 -d ab --keep
Martin von Zweigbergk
rebase: change and standarize template for rebase's one-line summary...
r46356 rebasing 13:7bc217434fc1 tip "abc"
Ryan McElroy
merge: minimize conflicts when common base is not shown (issue4447)...
r28072 merging a
warning: conflicts while merging a! (edit, then use 'hg resolve --mark')
Daniel Ploch
error: unify the error message formats for 'rebase' and 'unshelve'...
r45710 unresolved conflicts (see 'hg resolve', then 'hg rebase --continue')
Martin von Zweigbergk
errors: add config that lets user get more detailed exit codes...
r46430 [240]
Ryan McElroy
merge: minimize conflicts when common base is not shown (issue4447)...
r28072 $ hg diff
diff -r 328e4ab1f7cc a
--- a/a Thu Jan 01 00:00:00 1970 +0000
+++ b/a * (glob)
@@ -1,2 +1,6 @@
a
b
Kostia Balytskyi
conflicts: make spacing consistent in conflict markers...
r30460 +<<<<<<< dest: 328e4ab1f7cc ab - test: ab
Ryan McElroy
merge: minimize conflicts when common base is not shown (issue4447)...
r28072 +=======
+c
+>>>>>>> source: 7bc217434fc1 - test: abc
$ hg rebase --abort
rebase aborted
$ hg up -q -C 7bc217434fc1
$ hg rebase -s . -d ab --keep -t internal:merge3
Martin von Zweigbergk
rebase: change and standarize template for rebase's one-line summary...
r46356 rebasing 13:7bc217434fc1 tip "abc"
Ryan McElroy
merge: minimize conflicts when common base is not shown (issue4447)...
r28072 merging a
warning: conflicts while merging a! (edit, then use 'hg resolve --mark')
Daniel Ploch
error: unify the error message formats for 'rebase' and 'unshelve'...
r45710 unresolved conflicts (see 'hg resolve', then 'hg rebase --continue')
Martin von Zweigbergk
errors: add config that lets user get more detailed exit codes...
r46430 [240]
Ryan McElroy
merge: minimize conflicts when common base is not shown (issue4447)...
r28072 $ hg diff
diff -r 328e4ab1f7cc a
--- a/a Thu Jan 01 00:00:00 1970 +0000
+++ b/a * (glob)
@@ -1,2 +1,8 @@
a
Martin von Zweigbergk
rebase: set custom conflict label for base commit...
r49434 +<<<<<<< dest: 328e4ab1f7cc ab - test: ab
Ryan McElroy
merge: minimize conflicts when common base is not shown (issue4447)...
r28072 b
Martin von Zweigbergk
rebase: set custom conflict label for base commit...
r49434 +||||||| parent of source: cb9a9f314b8b - test: a
Ryan McElroy
merge: minimize conflicts when common base is not shown (issue4447)...
r28072 +=======
+b
+c
Martin von Zweigbergk
rebase: set custom conflict label for base commit...
r49434 +>>>>>>> source: 7bc217434fc1 - test: abc
Jun Wu
test-rebase-conflicts: add a test case about turning obsstore on and off...
r33034
Test rebase with obsstore turned on and off (issue5606)
$ cd $TESTTMP
$ hg init b
$ cd b
$ hg debugdrawdag <<'EOS'
> D
> |
> C
> |
> B E
> |/
> A
> EOS
$ hg update E -q
$ echo 3 > B
$ hg commit --amend -m E -A B -q
Boris Feld
config: replace experimental.stabilization by experimental.evolution...
r34866 $ hg rebase -r B+D -d . --config experimental.evolution=true
Martin von Zweigbergk
rebase: change and standarize template for rebase's one-line summary...
r46356 rebasing 1:112478962961 B "B"
Jun Wu
test-rebase-conflicts: add a test case about turning obsstore on and off...
r33034 merging B
warning: conflicts while merging B! (edit, then use 'hg resolve --mark')
Daniel Ploch
error: unify the error message formats for 'rebase' and 'unshelve'...
r45710 unresolved conflicts (see 'hg resolve', then 'hg rebase --continue')
Martin von Zweigbergk
errors: add config that lets user get more detailed exit codes...
r46430 [240]
Jun Wu
test-rebase-conflicts: add a test case about turning obsstore on and off...
r33034
$ echo 4 > B
$ hg resolve -m
(no more unresolved files)
continue: hg rebase --continue
Boris Feld
config: replace experimental.stabilization by experimental.evolution...
r34866 $ hg rebase --continue --config experimental.evolution=none
Martin von Zweigbergk
rebase: change and standarize template for rebase's one-line summary...
r46356 rebasing 1:112478962961 B "B"
rebasing 3:f585351a92f8 D "D"
Jun Wu
rebase: use scmutil.cleanupnodes (issue5606) (BC)...
r33332 warning: orphaned descendants detected, not stripping 112478962961
Matt Harbison
tests: remove (glob) annotations that were only for '\' matches...
r35394 saved backup bundle to $TESTTMP/b/.hg/strip-backup/f585351a92f8-e536a9e4-rebase.hg
Jun Wu
test-rebase-conflicts: add a test case about turning obsstore on and off...
r33034
$ rm .hg/localtags
$ hg tglog
Jun Wu
rebase: use scmutil.cleanupnodes (issue5606) (BC)...
r33332 o 5:draft 'D'
|
o 4:draft 'B'
Jun Wu
test-rebase-conflicts: add a test case about turning obsstore on and off...
r33034 |
Jun Wu
rebase: use scmutil.cleanupnodes (issue5606) (BC)...
r33332 @ 3:draft 'E'
Jun Wu
test-rebase-conflicts: add a test case about turning obsstore on and off...
r33034 |
Jun Wu
rebase: use scmutil.cleanupnodes (issue5606) (BC)...
r33332 | o 2:draft 'C'
| |
| o 1:draft 'B'
|/
Jun Wu
test-rebase-conflicts: add a test case about turning obsstore on and off...
r33034 o 0:draft 'A'
Martin von Zweigbergk
tests: add test of rebase with conflict in merge commit...
r44816
Test where the conflict happens when rebasing a merge commit
$ cd $TESTTMP
$ hg init conflict-in-merge
$ cd conflict-in-merge
$ hg debugdrawdag <<'EOS'
> F # F/conflict = foo\n
> |\
> D E
> |/
> C B # B/conflict = bar\n
> |/
> A
> EOS
$ hg co F
5 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ hg rebase -d B
Martin von Zweigbergk
rebase: change and standarize template for rebase's one-line summary...
r46356 rebasing 2:dc0947a82db8 C "C"
rebasing 3:e7b3f00ed42e D "D"
rebasing 4:03ca77807e91 E "E"
rebasing 5:9a6b91dc2044 F tip "F"
Martin von Zweigbergk
tests: add test of rebase with conflict in merge commit...
r44816 merging conflict
warning: conflicts while merging conflict! (edit, then use 'hg resolve --mark')
Daniel Ploch
error: unify the error message formats for 'rebase' and 'unshelve'...
r45710 unresolved conflicts (see 'hg resolve', then 'hg rebase --continue')
Martin von Zweigbergk
errors: add config that lets user get more detailed exit codes...
r46430 [240]
Martin von Zweigbergk
tests: add test of rebase with conflict in merge commit...
r44816 $ hg tglog
@ 8:draft 'E'
|
Martin von Zweigbergk
rebase: don't use rebased node as dirstate p2 (BC)...
r44821 | @ 7:draft 'D'
Martin von Zweigbergk
tests: add test of rebase with conflict in merge commit...
r44816 |/
o 6:draft 'C'
|
Martin von Zweigbergk
rebase: don't use rebased node as dirstate p2 (BC)...
r44821 | % 5:draft 'F'
Martin von Zweigbergk
tests: add test of rebase with conflict in merge commit...
r44816 | |\
| | o 4:draft 'E'
| | |
| o | 3:draft 'D'
| |/
| o 2:draft 'C'
| |
o | 1:draft 'B'
|/
o 0:draft 'A'
$ echo baz > conflict
$ hg resolve -m
(no more unresolved files)
continue: hg rebase --continue
$ hg rebase -c
Martin von Zweigbergk
rebase: change and standarize template for rebase's one-line summary...
r46356 already rebased 2:dc0947a82db8 C "C" as 0199610c343e
already rebased 3:e7b3f00ed42e D "D" as f0dd538aaa63
already rebased 4:03ca77807e91 E "E" as cbf25af8347d
rebasing 5:9a6b91dc2044 F "F"
Martin von Zweigbergk
tests: add test of rebase with conflict in merge commit...
r44816 saved backup bundle to $TESTTMP/conflict-in-merge/.hg/strip-backup/dc0947a82db8-ca7e7d5b-rebase.hg
$ hg tglog
@ 5:draft 'F'
|\
| o 4:draft 'E'
| |
o | 3:draft 'D'
|/
o 2:draft 'C'
|
o 1:draft 'B'
|
o 0:draft 'A'