Merge lp:~jelmer/brz/bug842575-rm-resolve into lp:brz

Proposed by Jelmer Vernooij
Status: Merged
Merged at revision: 6837
Proposed branch: lp:~jelmer/brz/bug842575-rm-resolve
Merge into: lp:brz
Diff against target: 76 lines (+59/-1)
1 file modified
breezy/tests/blackbox/test_resolve.py (+59/-1)
To merge this branch: bzr merge lp:~jelmer/brz/bug842575-rm-resolve
Reviewer Review Type Date Requested Status
Martin Packman Approve
Review via email: mp+334651@code.launchpad.net

Description of the change

To post a comment you must log in.
Revision history for this message
Martin Packman (gz) wrote :

Again, the exception wrapping is a little odd here, but can mass fix later.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'breezy/tests/blackbox/test_resolve.py'
2--- breezy/tests/blackbox/test_resolve.py 2017-11-12 20:07:32 +0000
3+++ breezy/tests/blackbox/test_resolve.py 2017-12-04 00:29:32 +0000
4@@ -18,7 +18,10 @@
5 conflicts,
6 tests,
7 )
8-from breezy.tests import script
9+from breezy.tests import (
10+ script,
11+ KnownFailure,
12+ )
13 from breezy.tests.blackbox import test_conflicts
14
15
16@@ -72,6 +75,61 @@
17 $ brz conflicts -d branch
18 """)
19
20+ def test_bug_842575_manual_rm(self):
21+ self.run_script("""\
22+$ brz init -q trunk
23+$ echo original > trunk/foo
24+$ brz add -q trunk/foo
25+$ brz commit -q -m first trunk
26+$ brz checkout -q trunk tree
27+$ brz rm -q trunk/foo
28+$ brz commit -q -m second trunk
29+$ echo modified > tree/foo
30+$ brz update tree
31+2>RM foo => foo.THIS
32+2>Contents conflict in foo
33+2>1 conflicts encountered.
34+2>Updated to revision 2 of branch ...
35+$ rm tree/foo.BASE tree/foo.THIS
36+$ brz resolve --all -d tree
37+2>1 conflict resolved, 0 remaining
38+""")
39+ try:
40+ self.run_script("""\
41+$ brz status tree
42+""")
43+ except AssertionError:
44+ raise KnownFailure("bug #842575")
45+
46+ def test_bug_842575_take_other(self):
47+ self.run_script("""\
48+$ brz init -q trunk
49+$ echo original > trunk/foo
50+$ brz add -q trunk/foo
51+$ brz commit -q -m first trunk
52+$ brz checkout -q --lightweight trunk tree
53+$ brz rm -q trunk/foo
54+$ brz ignore -d trunk foo
55+$ brz commit -q -m second trunk
56+$ echo modified > tree/foo
57+$ brz update tree
58+2>+N .bzrignore
59+2>RM foo => foo.THIS
60+2>Contents conflict in foo
61+2>1 conflicts encountered.
62+2>Updated to revision 2 of branch ...
63+$ brz resolve --take-other --all -d tree
64+2>1 conflict resolved, 0 remaining
65+""")
66+ try:
67+ self.run_script("""\
68+$ brz status tree
69+$ echo mustignore > tree/foo
70+$ brz status tree
71+""")
72+ except AssertionError:
73+ raise KnownFailure("bug 842575")
74+
75
76 class TestBug788000(script.TestCaseWithTransportAndScript):
77

Subscribers

People subscribed via source and target branches