~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Ian Clatworthy
  • Date: 2008-01-04 00:26:05 UTC
  • mto: (3164.2.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 3166.
  • Revision ID: ian.clatworthy@internode.on.net-20080104002605-wusiuhvzkpt8ovcd
diff without arguments means the current tree, not the current directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
259
259
        output = self.run_bzr('diff -r 1.. branch1', retcode=1)
260
260
        self.assertContainsRe(output[0], '\n\\-original line\n\\+new line\n')
261
261
 
 
262
    def test_diff_to_working_tree_in_subdir(self):
 
263
        self.example_branch2()
 
264
        self.build_tree_contents([('branch1/file1', 'new line')])
 
265
        os.mkdir('branch1/dir1')
 
266
        os.chdir('branch1/dir1')
 
267
        output = self.run_bzr('diff -r 1..', retcode=1)
 
268
        self.assertContainsRe(output[0], '\n\\-original line\n\\+new line\n')
 
269
 
262
270
    def test_diff_across_rename(self):
263
271
        """The working tree path should always be considered for diffing"""
264
272
        tree = self.make_example_branch()