mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
9473b487b5
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
40 lines
935 B
Perl
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
|