~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/__init__.py

  • Committer: Martin Pool
  • Date: 2006-01-06 01:13:05 UTC
  • mfrom: (1534.1.4 integration)
  • Revision ID: mbp@sourcefrog.net-20060106011305-3772285d84b5cbb4
[merge] robertc

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
                  '_darcs',
64
64
                  'aclocal.m4',
65
65
                  'autom4te*',
66
 
                  'config.guess',
67
66
                  'config.h',
68
67
                  'config.h.in',
69
68
                  'config.log',
70
69
                  'config.status',
71
70
                  'config.sub',
72
 
                  'configure.in',
73
71
                  'stamp-h',
74
72
                  'stamp-h.in',
75
73
                  'stamp-h1',
79
77
IGNORE_FILENAME = ".bzrignore"
80
78
 
81
79
import os
82
 
import locale
 
80
import sys
 
81
if sys.platform == 'darwin':
 
82
    # work around egregious python 2.4 bug
 
83
    sys.platform = 'posix'
 
84
    import locale
 
85
    sys.platform = 'darwin'
 
86
else:
 
87
    import locale
83
88
user_encoding = locale.getpreferredencoding() or 'ascii'
84
89
del locale
85
90
 
89
94
version_info = (0, 7, 0, 'pre', 0)
90
95
 
91
96
 
 
97
from bzrlib.symbol_versioning import deprecated_function, zero_seven
 
98
 
 
99
@deprecated_function(zero_seven)
92
100
def get_bzr_revision():
93
 
    """If bzr is run from a branch, return (revno,revid) or None"""
 
101
    """If bzr is run from a branch, return (revno,revid) or None."""
94
102
    import bzrlib.errors
95
103
    from bzrlib.branch import Branch
96
104