~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_merge.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-06-13 16:25:08 UTC
  • mfrom: (5954.4.12 merge-into-empty)
  • Revision ID: pqm@pqm.ubuntu.com-20110613162508-yyvo3qc06t9d2wwf
Support merging into empty tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
668
668
            self.build_tree([f])
669
669
            tree.add(f)
670
670
            tree.commit("added "+f)
671
 
        for context in (".", "", "a"):
672
 
            self.run_bzr("merge -r 1..0 " + context)
 
671
        for context in (".", "", 'a'):
 
672
            retcode = 1 if context == '.' or context == '' else 0
 
673
            self.run_bzr("merge -r 1..0 " + context, retcode=retcode)
673
674
            self.assertPathDoesNotExist("a")
674
675
            tree.revert()
675
676
            self.assertPathExists("a")