~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/__init__.py

  • Committer: Martin Pool
  • Date: 2005-06-06 04:47:33 UTC
  • Revision ID: mbp@sourcefrog.net-20050606044733-e902b05ac1747cd2
- fix invocation of testbzr when giving explicit bzr location

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""bzr library"""
18
18
 
19
 
# TODO: Do less imports here
 
19
from inventory import Inventory, InventoryEntry
20
20
from branch import Branch, ScratchBranch, find_branch
21
 
from errors import BzrError
 
21
from osutils import format_date
 
22
from tree import Tree
 
23
from diff import compare_trees
 
24
from trace import mutter, warning, open_tracefile
 
25
from log import show_log
 
26
import add
22
27
 
23
28
BZRDIR = ".bzr"
24
29
 
37
42
IGNORE_FILENAME = ".bzrignore"
38
43
 
39
44
import locale
40
 
user_encoding = locale.getpreferredencoding() or 'ascii'
 
45
user_encoding = locale.getpreferredencoding()
41
46
del locale
42
47
 
43
48
__copyright__ = "Copyright 2005 Canonical Development Ltd."
44
49
__author__ = "Martin Pool <mbp@canonical.com>"
45
 
__version__ = '0.0.5'
 
50
__version__ = '0.0.5pre'
46
51
 
47
52
 
48
53
def get_bzr_revision():
49
54
    """If bzr is run from a branch, return (revno,revid) or None"""
 
55
    from errors import BzrError
50
56
    try:
51
57
        branch = Branch(__path__[0])
52
58
        rh = branch.revision_history()