~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/__init__.py

Merge from integration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
                  '*.py[oc]',
38
38
                  '*.so',
39
39
                  '*.tmp',
 
40
                  '.*.tmp',
40
41
                  '*~',
41
42
                  '.#*',
42
43
                  '.*.sw[nop]',
43
 
                  '.*.tmp',
 
44
                  '.sw[nop]',    # vim editing nameless file
44
45
                  '.DS_Store',
45
46
                  '.arch-ids',
46
47
                  '.arch-inventory',
56
57
                  'BitKeeper',
57
58
                  'CVS',
58
59
                  'CVS.adm',
59
 
                  'Makefile.in',
60
60
                  'RCS',
61
61
                  'SCCS',
62
62
                  'TAGS',
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
 
86
 
__copyright__ = "Copyright 2005 Canonical Development Ltd."
87
 
__version__ = version_string = '0.7pre'
 
91
__copyright__ = "Copyright 2005,06 Canonical Development Ltd."
 
92
__version__ = version_string = '0.7rc1'
88
93
# same format as sys.version_info
89
 
version_info = (0, 7, 0, 'pre', 0)
90
 
 
91
 
 
 
94
version_info = (0, 7, 0, 'rc', 1)
 
95
 
 
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
    
105
113
        return None
106
114
    
107
115
def test_suite():
108
 
    import selftest
109
 
    return selftest.test_suite()
 
116
    import tests
 
117
    return tests.test_suite()