~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_conflicts.py

Implement --interactive for PathConflict.

* bzrlib/tests/test_conflicts.py:
(TestResolvePathConflict): Tests for --interactive.

* bzrlib/conflicts.py:
(PathConflict): Add actions for --interactive.
(TextConflict): Ensure TextConflict is not solved like a
PathConflict (this double the FIXME about inheritance or put
weight behind the idea that we should define a ConflictSolver
hierarchy independent from the Conflict hierarchy...).

Show diffs side-by-side

added added

removed removed

Lines of Context:
507
507
$ bzr commit --strict -m 'No more conflicts nor unknown files'
508
508
""")
509
509
 
 
510
    def test_resolve_keeping_mine(self):
 
511
        self.run_script("""
 
512
$ bzr resolve --interactive file-in-branch
 
513
<keep_mine
 
514
$ bzr commit --strict -m 'No more conflicts nor unknown files'
 
515
""")
 
516
 
 
517
    def test_resolve_taking_theirs(self):
 
518
        self.run_script("""
 
519
$ bzr resolve --interactive file-in-branch
 
520
<take_theirs
 
521
$ bzr commit --strict -m 'No more conflicts nor unknown files'
 
522
""")
 
523
 
510
524
 
511
525
class TestResolveParentLoop(TestResolveConflicts):
512
526