Mercurial > hg
view contrib/docker/centos5 @ 26836:88c4e97b9669 stable
scmutil: abort if an empty revision is given to revpair()
When using 'extdiff --patch' to check the changes in a rebase, 'precursors(x)'
evaluated to an empty set because I forgot the --hidden flag, so the other
revision was used as the replacement for the empty set. The result was the
patch for the other revision was diffed against itself, and the tool saying
there were no differences. That's misleading since the expected diff args were
silently changed, so it's better to bail out.
The other uses of scmutil.revpair() are commands.diff and commands.status, and
it doesn't make sense to allow an empty revision there either. The code here
was suggested by Yuya Nishihara.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 31 Oct 2015 21:45:46 -0400 |
parents | eea2e0f76a24 |
children | aa7a3f6e3729 |
line wrap: on
line source
FROM centos:centos5 RUN yum install -y gcc make rpm-build gettext tar RUN yum install -y python-devel python-docutils # For creating repo meta data RUN yum install -y createrepo RUN yum install -y readline-devel openssl-devel ncurses-devel zlib-devel bzip2-devel