hg
author Jim Hague <jim.hague@acm.org>
Tue, 23 Oct 2007 10:39:24 +0000
changeset 5614 5133e9f61700
parent 5197 55860a45bbf2
child 5531 a3fe91b4f6eb
permissions -rwxr-xr-x
Fix bdiff test failures on AIX. The test fails when, in the call to calloc(), the number of elements (bn) is 0. In that case, calloc() on AIX will return NULL, while the code expects a valid heap pointer. Both results are permissible under C99, Unix98 etc. Work around by ensuring that at least 1 element is requested.

#!/usr/bin/env python
#
# mercurial - scalable distributed SCM
#
# Copyright 2005-2007 Matt Mackall <mpm@selenic.com>
#
# This software may be used and distributed according to the terms
# of the GNU General Public License, incorporated herein by reference.

# enable importing on demand to reduce startup time
from mercurial import demandimport; demandimport.enable()

import mercurial.dispatch
mercurial.dispatch.run()