~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/versioning.py

  • Committer: Martin Pool
  • Date: 2005-07-25 22:52:42 UTC
  • Revision ID: mbp@sourcefrog.net-20050725225241-1d8838a01307836d
- bzr commit from subdirectory should commit the whole tree

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
        
101
101
        os.chdir('a')
102
102
        # commit from here should do nothing
103
 
        run_bzr('commit', '.', '-m', 'commit subdir again', '--unchanged')
 
103
        run_bzr('commit', '.', '-m', 'commit subdir only', '--unchanged')
104
104
        v3 = b.revision_tree(b.lookup_revision(3))
105
105
        eq(v3.get_file_by_path('b/two').read(), 'old contents')
106
106
        eq(v3.get_file_by_path('top').read(), 'old contents')
107
107
        eq(v3.get_file_by_path('a/one').read(), 'new contents')
108
108
                
109
109
        # commit in subdirectory commits whole tree
110
 
        run_bzr('commit', '-m', 'commit in subdir')
 
110
        run_bzr('commit', '-m', 'commit whole tree from subdir')
111
111
        v4 = b.revision_tree(b.lookup_revision(4))
112
112
        eq(v4.get_file_by_path('b/two').read(), 'new contents')        
113
113
        eq(v4.get_file_by_path('top').read(), 'new contents')