/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 tests/test_blackbox.py

  • Committer: Eric Anderson
  • Date: 2008-11-25 01:45:22 UTC
  • mto: (0.200.116 trunk)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: eric@pixelwareinc.com-20081125014522-leeq8vts9nv3awjm
When reading branch use active branch instead of first branch.

This allows us to interact with whatever is set as the current active 
branch instead of being limited to only the first branch (master). 
Useful for creating a branch from somewhere other than master.

Limited in its usefulness as I believe git only allows switching 
branches in a non-bare repositories and most trees being branched from 
are bare repositories. Also requiring the source repository to switch
its active branch is pretty intrusive. But something is better than
nothing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
        self.simple_commit()
41
41
        output, error = self.run_bzr(['info'])
42
42
        self.assertEqual(error, '')
43
 
        self.assertTrue("Repository branch (format: git)" in output)
 
43
        self.assertTrue("Repository tree (format: git)" in output)
44
44
 
45
45
    def test_branch(self):
46
46
        os.mkdir("gitbranch")
54
54
        os.chdir("..")
55
55
        output, error = self.run_bzr(['branch', 'gitbranch', 'bzrbranch'])
56
56
        self.assertEqual(error, 'Branched 1 revision(s).\n')
 
57
        self.assertEqual(output, '')
57
58
 
58
59
    def test_branch_ls(self):
59
60
        self.simple_commit()
102
103
        self.assertEquals(output, "foo                  1\n")
103
104
 
104
105
    def test_tag(self):
 
106
        raise KnownFailure("setting tags not supported by git-python yet")
105
107
        self.simple_commit()
106
108
 
107
109
        output, error = self.run_bzr(["tag", "bar"])
108
110
 
109
111
        self.assertEquals(error, '')
110
 
        self.assertEquals(output, 'Created tag bar.\n')
 
112
        self.assertEquals(output, '')
111
113