~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_revno.py

  • Committer: Vincent Ladeuil
  • Date: 2009-06-30 16:59:21 UTC
  • mto: (4493.2.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4496.
  • Revision ID: v.ladeuil+lp@free.fr-20090630165921-jdg42f5unm33nz8a
Fix failing test.

* bzrlib/tests/blackbox/test_revision_info.py:
Minor cleanups.

* bzrlib/tests/blackbox/test_revno.py:
Some cleanups.

* bzrlib/builtins.py: 
(cmd_revno.run): Don't open WT if we don't need to.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005 Canonical Ltd
2
 
# -*- coding: utf-8 -*-
 
1
# Copyright (C) 2005, 2006, 2007, 2009 Canonical Ltd
3
2
#
4
3
# This program is free software; you can redistribute it and/or modify
5
4
# it under the terms of the GNU General Public License as published by
21
20
 
22
21
import os
23
22
 
24
 
from bzrlib.branch import Branch
25
 
from bzrlib.tests import TestCaseWithTransport
 
23
from bzrlib import tests
26
24
 
27
 
class TestRevno(TestCaseWithTransport):
 
25
class TestRevno(tests.TestCaseWithTransport):
28
26
 
29
27
    def test_revno(self):
30
28