Mercurial > hg
comparison tests/test-convert-git.t @ 34989:1a314176da9c stable
subrepo: use per-type config options to enable subrepos
We change subrepos.allowed from a list of allowed subrepo types to
a combination of a master switch and per-type boolean flag.
If the master switch is set, subrepos can be disabled wholesale.
If subrepos are globally enabled, then per-type options are
consulted. Mercurial repos are enabled by default. Everything else
is disabled by default.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 06 Nov 2017 22:32:41 -0800 |
parents | 846942fd6d15 |
children | 4441705b7111 |
comparison
equal
deleted
inserted
replaced
34988:bd725a71f274 | 34989:1a314176da9c |
---|---|
6 $ echo "autocrlf = false" >> $HOME/.gitconfig | 6 $ echo "autocrlf = false" >> $HOME/.gitconfig |
7 $ echo "[extensions]" >> $HGRCPATH | 7 $ echo "[extensions]" >> $HGRCPATH |
8 $ echo "convert=" >> $HGRCPATH | 8 $ echo "convert=" >> $HGRCPATH |
9 $ cat >> $HGRCPATH <<EOF | 9 $ cat >> $HGRCPATH <<EOF |
10 > [subrepos] | 10 > [subrepos] |
11 > allowed = hg, git | 11 > git:allowed = true |
12 > EOF | 12 > EOF |
13 $ GIT_AUTHOR_NAME='test'; export GIT_AUTHOR_NAME | 13 $ GIT_AUTHOR_NAME='test'; export GIT_AUTHOR_NAME |
14 $ GIT_AUTHOR_EMAIL='test@example.org'; export GIT_AUTHOR_EMAIL | 14 $ GIT_AUTHOR_EMAIL='test@example.org'; export GIT_AUTHOR_EMAIL |
15 $ GIT_AUTHOR_DATE="2007-01-01 00:00:00 +0000"; export GIT_AUTHOR_DATE | 15 $ GIT_AUTHOR_DATE="2007-01-01 00:00:00 +0000"; export GIT_AUTHOR_DATE |
16 $ GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"; export GIT_COMMITTER_NAME | 16 $ GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"; export GIT_COMMITTER_NAME |