~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_tree.py

  • Committer: Tarmac
  • Author(s): Vincent Ladeuil
  • Date: 2017-01-30 14:42:05 UTC
  • mfrom: (6620.1.1 trunk)
  • Revision ID: tarmac-20170130144205-r8fh2xpmiuxyozpv
Merge  2.7 into trunk including fix for bug #1657238 [r=vila]

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006, 2008 Canonical Ltd
 
1
# Copyright (C) 2006-2009, 2011 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
19
19
from bzrlib import (
20
20
    errors,
21
21
    revision,
22
 
    tests,
23
22
    tree as _mod_tree,
24
23
    )
25
24
from bzrlib.tests import TestCaseWithTransport
123
122
        wt = self.make_branch_and_tree('.')
124
123
        delta = wt.changes_from(wt.basis_tree())
125
124
        self.assertEqual(len(delta.added), 0)
126
 
        delta = wt.changes_from(wt.basis_tree(), wt, include_root=True)
 
125
        delta = wt.changes_from(wt.basis_tree(), include_root=True)
127
126
        self.assertEqual(len(delta.added), 1)
128
127
        self.assertEqual(delta.added[0][0], '')
129
128
 
139
138
 
140
139
        # we need to pass a known file with an unknown file to get this to
141
140
        # fail when expected.
142
 
        delta = wt.changes_from(wt.basis_tree(), wt,
 
141
        delta = wt.changes_from(wt.basis_tree(),
143
142
            specific_files=['known_file', 'unknown_file'] ,
144
143
            require_versioned=False)
145
144
        self.assertEqual(len(delta.added), 1)