##// END OF EJS Templates
revsetbenchmark: automatically finds the perf extension...
revsetbenchmark: automatically finds the perf extension Before this changeset, you had to stand in the root of the mercurial repo to run the `revsetbenchmark.py` script. Otherwise, the perf extension would not be found a `./contrib/perf.py` and the script would crash in panic. We now figure out the contrib directory from the location of this script. This makes it possible to run the script from other location that the mercurial repo root (but you still need to be in the core mercurial repository)

File last commit:

r21255:62a27498 default
r21548:651d7548 default
Show More
dockerrpm
14 lines | 395 B | text/plain | TextLexer
#!/bin/bash
BUILDDIR=$(dirname $0)
ROOTDIR=$(cd $BUILDDIR/..; pwd)
if which docker >> /dev/null ; then
DOCKER=docker
elif which docker.io >> /dev/null ; then
DOCKER=docker.io
fi
$DOCKER build --tag "hg-dockerrpm-$1" - < $BUILDDIR/docker/$1
$DOCKER run --rm -v $ROOTDIR:/hg "hg-dockerrpm-$1" bash -c \
"cp -a hg hg-build; cd hg-build; make clean local $1; cp build/$1/* /hg/build/$1/"