~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/__init__.py

  • Committer: Martin Pool
  • Date: 2005-07-29 12:29:27 UTC
  • Revision ID: mbp@sourcefrog.net-20050729122927-d51c2cedc14dd5d5
doc

Show diffs side-by-side

added added

removed removed

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