~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/__init__.py

  • Committer: Martin Pool
  • Date: 2005-07-11 03:12:34 UTC
  • Revision ID: mbp@sourcefrog.net-20050711031233-e5cc726bc78362e1
- fix typo

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