~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/__init__.py

  • Committer: John Arbash Meinel
  • Date: 2005-09-15 21:35:53 UTC
  • mfrom: (907.1.57)
  • mto: (1393.2.1)
  • mto: This revision was merged to the branch mainline in revision 1396.
  • Revision ID: john@arbash-meinel.com-20050915213552-a6c83a5ef1e20897
(broken) Transport work is merged in. Tests do not pass yet.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
                  'BitKeeper',
29
29
                  '.git',
30
30
                  'TAGS', '.make.state', '.sconsign', '.tmp*',
31
 
                  '.del-*',
32
 
                  '.DS_Store',]
 
31
                  '.del-*']
33
32
 
34
33
IGNORE_FILENAME = ".bzrignore"
35
34
 
36
 
import os
37
35
import locale
38
36
user_encoding = locale.getpreferredencoding() or 'ascii'
39
37
del locale
40
38
 
41
39
__copyright__ = "Copyright 2005 Canonical Development Ltd."
42
 
__version__ = '0.10pre(newformat)'
 
40
__author__ = "Martin Pool <mbp@canonical.com>"
 
41
__version__ = '0.1pre'
43
42
 
44
43
 
45
44
def get_bzr_revision():
48
47
    from bzrlib.branch import Branch
49
48
    
50
49
    try:
51
 
        branch = Branch.open(os.path.dirname(__path__[0]))
 
50
        import os
 
51
        branch = Branch(os.path.dirname(__path__[0]))
52
52
        rh = branch.revision_history()
53
53
        if rh:
54
54
            return len(rh), rh[-1]