mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
ad813edcbd
Summary: Now that all our repos are treemanifest, let's enable the extension by default in tests. Once we're certain no one needs it in production we'll also make it the default in core Mercurial. This diff includes a minor fix in treemanifest to be aware of always-enabled extensions. It won't matter until we actually add treemanifest to the list of default enabled extensions, but I caught this while testing things. Reviewed By: ikostia Differential Revision: D15030253 fbshipit-source-id: d8361f915928b6ad90665e6ed330c1df5c8d8d86
41 lines
981 B
Perl
41 lines
981 B
Perl
$ setconfig extensions.treemanifest=!
|
|
|
|
Setup
|
|
|
|
|
|
$ cat > $TESTTMP/pretxnchangegroup.sh << EOF
|
|
> #!/bin/sh
|
|
> env | grep -E "^HG_USERVAR"
|
|
> exit 0
|
|
> EOF
|
|
$ chmod +x $TESTTMP/pretxnchangegroup.sh
|
|
$ cat >> $HGRCPATH << EOF
|
|
> [extensions]
|
|
> tweakdefaults=
|
|
> remotenames=
|
|
> [hooks]
|
|
> pretxnchangegroup = $TESTTMP/pretxnchangegroup.sh
|
|
> EOF
|
|
|
|
$ hg init server
|
|
$ cd server
|
|
|
|
$ echo x > x
|
|
$ hg commit -qAm x
|
|
$ hg book master
|
|
|
|
$ cd ..
|
|
$ hg clone -q server client
|
|
$ cd client
|
|
$ echo x >> x
|
|
$ hg commit -m x
|
|
|
|
Remotenames should not interfere with pushvars
|
|
|
|
$ hg push --to master --debug --pushvars MYPUSHVAR=true 2>&1 | egrep -i '(USERVAR|pushvar)'
|
|
pushing rev c73f3db8c9d2 to destination $TESTTMP/server bookmark master
|
|
bundle2-output-part: "pushvars" (params: 1 advisory) empty payload
|
|
bundle2-input-part: "pushvars" (params: 1 advisory) supported
|
|
running hook pretxnchangegroup: $TESTTMP/pretxnchangegroup.sh
|
|
HG_USERVAR_MYPUSHVAR=true
|