~ubuntu-branches/debian/sid/trac-bzr/sid

« back to all changes in this revision

Viewing changes to tracbzr/tests/test_branch.py

  • Committer: Bazaar Package Importer
  • Author(s): Jelmer Vernooij
  • Date: 2010-11-06 22:15:24 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20101106221524-5qcw36mf53wlxayg
Tags: 0.4.2-1
* Run test suite during package build.
* Change section to vcs.
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 
10
10
import urllib
11
11
 
12
 
from bzrlib import bzrdir, osutils
13
12
from bzrlib.tests import treeshape
14
13
from trac import versioncontrol
15
14
 
22
21
                          self.trac_repo().get_changeset, 'foo')
23
22
        self.assertRaises(versioncontrol.NoSuchChangeset, 
24
23
                          self.trac_repo().get_changeset, ',foo')
 
24
        self.assertRaises(versioncontrol.NoSuchChangeset, 
 
25
                          self.trac_repo().get_changeset, '1')
25
26
        revision_id = self.commit_foo_bar()
26
27
        assert revision_id is not None
27
28
        changeset = self.trac_repo().get_changeset("1")
30
31
 
31
32
    def commit_foo_bar(self):
32
33
        """Create a simple revision"""
33
 
        treeshape.build_tree_contents([('a/',), ('a/b', 
 
34
        treeshape.build_tree_contents([('repo/a/',), ('repo/a/b', 
34
35
                                        'contents of b')])
35
36
        self.tree.add(['a', 'a/b'])
36
37
        return self.tree.commit('tree contents', rev_id='foo%bar')
37
 
 
38