Mercurial > hg
view contrib/dockerrpm @ 22135:37d2bd2c04f6
test-revert: add case where file is unchanged between "base" and "parent"
This test highlights a minor misbehavior in the message displayed
during an explicit revert with a target revision.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Fri, 27 Jun 2014 18:00:49 +0200 |
parents | 76a347bcdb33 |
children | f5abb231b80a |
line wrap: on
line source
#!/bin/bash BUILDDIR=$(dirname $0) ROOTDIR=$(cd $BUILDDIR/..; pwd) if which docker.io >> /dev/null ; then DOCKER=docker.io elif which docker >> /dev/null ; then DOCKER=docker 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 packages/$1/* /hg/packages/$1/"