~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/__init__.py

  • Committer: Martin Pool
  • Date: 2005-06-27 01:26:11 UTC
  • Revision ID: mbp@sourcefrog.net-20050627012611-4effb7007553fde1
- tweak rsync upload script

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