758
757
def test_take_this(self):
759
758
self.run_script("""
760
$ bzr rm -q dir --force
759
$ bzr rm -q dir --no-backup
761
760
$ bzr resolve dir
762
2>2 conflict(s) resolved, 0 remaining
761
2>2 conflicts resolved, 0 remaining
763
762
$ bzr commit -q --strict -m 'No more conflicts nor unknown files'
766
765
def test_take_other(self):
767
766
self.run_script("""
768
767
$ bzr resolve dir
769
2>2 conflict(s) resolved, 0 remaining
768
2>2 conflicts resolved, 0 remaining
770
769
$ bzr commit -q --strict -m 'No more conflicts nor unknown files'
786
785
$ bzr commit -q -m 'Add dir/file2 in branch'
787
786
$ bzr branch -q . -r 1 ../branch
789
$ bzr rm -q dir/file --force
788
$ bzr rm -q dir/file --no-backup
791
790
$ bzr commit -q -m 'Remove dir/file'
792
791
$ bzr merge ../trunk
800
799
def test_keep_them_all(self):
801
800
self.run_script("""
802
801
$ bzr resolve dir
803
2>2 conflict(s) resolved, 0 remaining
802
2>2 conflicts resolved, 0 remaining
804
803
$ bzr commit -q --strict -m 'No more conflicts nor unknown files'
807
806
def test_adopt_child(self):
808
807
self.run_script("""
809
808
$ bzr mv -q dir/file2 file2
810
$ bzr rm -q dir --force
809
$ bzr rm -q dir --no-backup
811
810
$ bzr resolve dir
812
2>2 conflict(s) resolved, 0 remaining
811
2>2 conflicts resolved, 0 remaining
813
812
$ bzr commit -q --strict -m 'No more conflicts nor unknown files'
816
815
def test_kill_them_all(self):
817
816
self.run_script("""
818
$ bzr rm -q dir --force
817
$ bzr rm -q dir --no-backup
819
818
$ bzr resolve dir
820
2>2 conflict(s) resolved, 0 remaining
819
2>2 conflicts resolved, 0 remaining
821
820
$ bzr commit -q --strict -m 'No more conflicts nor unknown files'
846
845
$ echo 'trunk content' >dir/file
848
847
$ bzr commit -m 'Create trunk' -q
849
$ bzr rm -q dir/file --force
850
$ bzr rm -q dir --force
848
$ bzr rm -q dir/file --no-backup
849
$ bzr rm -q dir --no-backup
851
850
$ bzr commit -q -m 'Remove dir/file'
852
851
$ bzr branch -q . -r 1 ../branch
864
863
def test_keep_them_all(self):
865
864
self.run_script("""
866
865
$ bzr resolve dir
867
2>2 conflict(s) resolved, 0 remaining
866
2>2 conflicts resolved, 0 remaining
868
867
$ bzr commit -q --strict -m 'No more conflicts nor unknown files'
871
870
def test_adopt_child(self):
872
871
self.run_script("""
873
872
$ bzr mv -q dir/file2 file2
874
$ bzr rm -q dir --force
873
$ bzr rm -q dir --no-backup
875
874
$ bzr resolve dir
876
2>2 conflict(s) resolved, 0 remaining
875
2>2 conflicts resolved, 0 remaining
877
876
$ bzr commit -q --strict -m 'No more conflicts nor unknown files'
880
879
def test_kill_them_all(self):
881
880
self.run_script("""
882
$ bzr rm -q dir --force
881
$ bzr rm -q dir --no-backup
883
882
$ bzr resolve dir
884
2>2 conflict(s) resolved, 0 remaining
883
2>2 conflicts resolved, 0 remaining
885
884
$ bzr commit -q --strict -m 'No more conflicts nor unknown files'
888
887
def test_resolve_taking_this(self):
889
888
self.run_script("""
890
889
$ bzr resolve --take-this dir
891
2>2 conflict(s) resolved, 0 remaining
890
2>2 conflicts resolved, 0 remaining
892
891
$ bzr commit -q --strict -m 'No more conflicts nor unknown files'
897
896
$ bzr resolve --take-other dir
898
897
2>deleted dir/file2
900
2>2 conflict(s) resolved, 0 remaining
899
2>2 conflicts resolved, 0 remaining
901
900
$ bzr commit -q --strict -m 'No more conflicts nor unknown files'
989
988
if self._other['xfail']:
990
989
# It's a bit hackish to raise from here relying on being called for
991
990
# both tests but this avoid overriding test_resolve_taking_other
992
raise tests.KnownFailure(
993
992
"ParentLoop doesn't carry enough info to resolve --take-other")
994
993
_assert_conflict = assertParentLoop
1023
1022
def test_take_this(self):
1024
1023
self.run_script("""
1025
$ bzr rm -q foo.new --force
1024
$ bzr rm -q foo.new --no-backup
1026
1025
# FIXME: Isn't it weird that foo is now unkown even if foo.new has been put
1027
1026
# aside ? -- vila 090916
1028
1027
$ bzr add -q foo
1029
1028
$ bzr resolve foo.new
1030
2>1 conflict(s) resolved, 0 remaining
1029
2>1 conflict resolved, 0 remaining
1031
1030
$ bzr commit -q --strict -m 'No more conflicts nor unknown files'
1034
1033
def test_take_other(self):
1035
1034
self.run_script("""
1036
$ bzr rm -q foo --force
1035
$ bzr rm -q foo --no-backup
1037
1036
$ bzr mv -q foo.new foo
1038
1037
$ bzr resolve foo
1039
2>1 conflict(s) resolved, 0 remaining
1038
2>1 conflict resolved, 0 remaining
1040
1039
$ bzr commit -q --strict -m 'No more conflicts nor unknown files'