/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_repository/test_commit_builder.py

  • Committer: John Arbash Meinel
  • Date: 2010-02-10 17:52:08 UTC
  • mfrom: (5021 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5023.
  • Revision ID: john@arbash-meinel.com-20100210175208-bubuwav4uqigu291
Merge bzr.dev 5021 to resolve NEWS

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006 Canonical Ltd
 
1
# Copyright (C) 2006-2010 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
16
16
 
17
17
"""Tests for repository commit builder."""
18
18
 
19
 
from copy import copy
20
 
import errno
21
19
import os
22
 
import sys
23
20
 
24
21
from bzrlib import (
25
22
    errors,
 
23
    graph,
26
24
    inventory,
27
25
    osutils,
28
26
    repository,
29
27
    revision as _mod_revision,
30
28
    tests,
31
29
    )
32
 
from bzrlib.graph import Graph
33
 
from bzrlib.tests.per_repository import test_repository
34
 
 
35
 
 
36
 
class TestCommitBuilder(test_repository.TestCaseWithRepository):
 
30
from bzrlib.tests import per_repository
 
31
 
 
32
 
 
33
class TestCommitBuilder(per_repository.TestCaseWithRepository):
37
34
 
38
35
    def test_get_commit_builder(self):
39
36
        branch = self.make_branch('.')
924
921
        # (closest to a public per-file graph API we have today)
925
922
        tree.lock_read()
926
923
        self.addCleanup(tree.unlock)
927
 
        graph = dict(Graph(tree.branch.repository.texts).iter_ancestry([tip]))
928
 
        self.assertEqual(expected_graph, graph)
 
924
        g = dict(graph.Graph(tree.branch.repository.texts).iter_ancestry([tip]))
 
925
        self.assertEqual(expected_graph, g)
929
926
 
930
927
    def test_last_modified_revision_after_content_file_changes(self):
931
928
        # altering a file changes the last modified.