~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzr

  • Committer: Martin Pool
  • Date: 2006-01-13 08:12:22 UTC
  • mfrom: (1185.63.5 bzr.patches)
  • Revision ID: mbp@sourcefrog.net-20060113081222-6b572004a2ade0cc
[merge] test_hashcache_raise from Denys

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
# You should have received a copy of the GNU General Public License
16
16
# along with this program; if not, write to the Free Software
17
17
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18
 
 
 
18
"""Bazaar-NG -- a free distributed version-control tool"""
19
19
import os, sys
20
 
 
 
20
if __doc__ is None:
 
21
    print "bzr does not support python -OO."
 
22
    sys.exit(2)
21
23
try:
22
24
    version_info = sys.version_info
23
25
except AttributeError:
24
26
    version_info = 1, 5 # 1.5 or older
25
27
 
26
 
 
27
 
REINVOKE = "__BZR_REINVOKE"    
 
28
REINVOKE = "__BZR_REINVOKE"
28
29
NEED_VERS = (2, 4)
29
30
KNOWN_PYTHONS = ('python2.4',)
30
31
 
54
55
                     "\n")
55
56
    raise
56
57
 
 
58
if bzrlib.version_info[:3] != (0, 8, 0):
 
59
    sys.stderr.write("bzr: WARNING: bzrlib version doesn't match the bzr program.\n"
 
60
            "This may indicate an installation problem.\n"
 
61
            "bzrlib from %s is version %r\n"
 
62
            % (bzrlib.__path__, bzrlib.version_info))
 
63
 
57
64
if __name__ == '__main__':
58
65
    bzrlib.trace.enable_default_logging()
59
66
    sys.exit(bzrlib.commands.main(sys.argv))