~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-02-13 04:04:13 UTC
  • mfrom: (1551.10.19 Aaron's mergeable stuff)
  • Revision ID: pqm@pqm.ubuntu.com-20070213040413-6b9f8b8ba554fcd5
bzr log works in local treeless branches (#84247)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005 Canonical Ltd
 
1
# Copyright (C) 2005, 2006, 2007 Canonical Ltd
2
2
# -*- coding: utf-8 -*-
3
3
#
4
4
# This program is free software; you can redistribute it and/or modify
22
22
 
23
23
import bzrlib
24
24
from bzrlib.tests.blackbox import ExternalBase
25
 
from bzrlib.tests import TestCaseInTempDir
 
25
from bzrlib.tests import TestCaseInTempDir, TestCaseWithTransport
26
26
 
27
27
 
28
28
class TestLog(ExternalBase):
290
290
        # Make sure the cp1251 string is not found anywhere
291
291
        self.assertEquals(-1, stdout.find(test_in_cp1251))
292
292
 
 
293
 
 
294
class TestLogFile(TestCaseWithTransport):
 
295
 
 
296
    def test_log_local_branch_file(self):
 
297
        """We should be able to log files in local treeless branches"""
 
298
        tree = self.make_branch_and_tree('tree')
 
299
        self.build_tree(['tree/file'])
 
300
        tree.add('file')
 
301
        tree.commit('revision 1')
 
302
        tree.bzrdir.destroy_workingtree()
 
303
        self.run_bzr('log', 'tree/file')