~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/__init__.py

  • Committer: Martin Pool
  • Date: 2005-07-22 23:43:26 UTC
  • Revision ID: mbp@sourcefrog.net-20050722234326-13104af9d837ed2b
todo

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