Mercurial > hg
view tests/test-inotify-dirty-dirstate @ 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 | 97eda2133a9b |
children |
line wrap: on
line source
#!/bin/sh # issues when status queries are issued when dirstate is dirty "$TESTDIR/hghave" inotify || exit 80 echo "[extensions]" >> $HGRCPATH echo "inotify=" >> $HGRCPATH echo "fetch=" >> $HGRCPATH echo % issue1810: inotify and fetch mkdir test; cd test hg init hg inserve -d --pid-file=../hg.pid cat ../hg.pid >> "$DAEMON_PIDS" echo foo > foo hg add hg ci -m foo cd .. hg --config "inotify.pidfile=../hg2.pid" clone test test2 cat ../hg2.pid >> "$DAEMON_PIDS" cd test2 echo bar > bar hg add hg ci -m bar cd ../test echo spam > spam hg add hg ci -m spam cd ../test2 hg st # abort, outstanding changes hg fetch -q hg st cd .. echo % issue1719: inotify and mq echo "mq=" >> $HGRCPATH hg init test-1719 cd test-1719 echo % inserve hg inserve -d --pid-file=../hg-test-1719.pid cat ../hg-test-1719.pid >> "$DAEMON_PIDS" echo content > file hg add file hg qnew -f test.patch hg status hg qpop echo % st should not output anything hg status hg qpush echo % st should not output anything hg status hg qrefresh hg status