~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/__init__.py

  • Committer: Martin Pool
  • Date: 2005-06-22 07:57:56 UTC
  • Revision ID: mbp@sourcefrog.net-20050622075756-f4f98a7f2addddf5
- stubbed-out tests for python plugins

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