~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_branchbuilder.py

  • Committer: Andrew Bennetts
  • Date: 2010-10-08 04:25:10 UTC
  • mto: This revision was merged to the branch mainline in revision 5472.
  • Revision ID: andrew.bennetts@canonical.com-20101008042510-sg9vdhmnggilzxsk
Fix stray TAB in source.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2007-2011 Canonical Ltd
 
1
# Copyright (C) 2007, 2009 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
18
18
 
19
19
from bzrlib import (
20
20
    branch as _mod_branch,
 
21
    errors,
21
22
    revision as _mod_revision,
22
23
    tests,
23
24
    )
321
322
                             ], d_tree)
322
323
        # Because we copied the exact text into *this* tree, the 'c' file
323
324
        # should look like it was not modified in the merge
324
 
        self.assertEqual('C-id', d_tree.get_file_revision('c-id'))
325
 
 
326
 
    def test_set_parent_to_null(self):
327
 
        builder = self.build_a_rev()
328
 
        builder.start_series()
329
 
        self.addCleanup(builder.finish_series)
330
 
        builder.build_snapshot('B-id', [],
331
 
            [('add', ('', None, 'directory', None))])
332
 
        # We should now have a graph:
333
 
        #   A B
334
 
        # And not A => B
335
 
        repo = builder.get_branch().repository
336
 
        self.assertEqual({'A-id': (_mod_revision.NULL_REVISION,),
337
 
                          'B-id': (_mod_revision.NULL_REVISION,),},
338
 
                         repo.get_parent_map(['A-id', 'B-id']))
339
 
 
340
 
    
 
325
        self.assertEqual('C-id', d_tree.inventory['c-id'].revision)
 
326
 
341
327
    def test_start_finish_series(self):
342
328
        builder = BranchBuilder(self.get_transport().clone('foo'))
343
329
        builder.start_series()