~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Aaron Bentley
  • Date: 2007-02-14 21:57:40 UTC
  • mfrom: (2286 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2288.
  • Revision ID: abentley@panoramicfeedback.com-20070214215740-qehopznuc8to99oy
Merge bzr.dev

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')