sapling/eden/scm/tests/test-fb-hgext-pushvars-remotenames.t
Durham Goode 9473b487b5 tests: enable treemanifest for ~100 more tests
Summary:
Enables treemanifest for about 100 more tests. To make them pass I had
to expose the gettreepack capability from peers, which just works, and enable
treeonly and sendtrees by default in the tests, which I probably should've done
before anyway.

Reviewed By: quark-zju

Differential Revision: D21894955

fbshipit-source-id: 7a6a4d453824fb8c81a797a5487bf2ecc2b67761
2020-06-10 19:29:48 -07:00

40 lines
935 B
Perl

#chg-compatible
$ enable tweakdefaults remotenames
Setup
$ cat > $TESTTMP/pretxnchangegroup.sh << EOF
> #!/bin/sh
> env | grep -E "^HG_USERVAR"
> exit 0
> EOF
$ chmod +x $TESTTMP/pretxnchangegroup.sh
$ readconfig <<EOF
> [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