Mercurial > hg
view tests/test-mq-symlinks @ 11965:77f1f206e135 stable
mq: don't inherit default and default-push paths with --mq (issue2333)
Configuration from the outer repo is inherited to the patches repo when --mq is
used.
In case the patches repo only has paths.default configured but the outer repo
has paths.default-push then the inherited default-push will win. Very
confusing.
Inheriting the default paths is however wrong in all sane cases, so now we
explicitly remove them.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 18 Aug 2010 02:43:45 +0200 |
parents | 8cb81d75730c |
children | b0bb72460c44 |
line wrap: on
line source
#!/bin/sh "$TESTDIR/hghave" symlink || exit 80 echo "[extensions]" >> $HGRCPATH echo "mq=" >> $HGRCPATH hg init hg qinit hg qnew base.patch echo aaa > a echo bbb > b echo ccc > c hg add a b c hg qrefresh $TESTDIR/readlink.py a echo '% test replacing a file with a symlink' hg qnew symlink.patch rm a ln -s b a hg qrefresh --git $TESTDIR/readlink.py a hg qpop hg qpush $TESTDIR/readlink.py a echo '% test updating a symlink' rm a ln -s c a hg qnew --git -f updatelink $TESTDIR/readlink.py a hg qpop hg qpush --debug $TESTDIR/readlink.py a hg st echo '% test replacing a symlink with a file' ln -s c s hg add s hg qnew --git -f addlink rm s echo sss > s hg qnew --git -f replacelinkwithfile hg qpop hg qpush cat s hg st echo '% test symlink removal' hg qnew removesl.patch hg rm a hg qrefresh --git hg qpop hg qpush hg st -c