mirror of
https://github.com/facebook/sapling.git
synced 2024-12-26 22:47:26 +03:00
467f4aef45
Summary: Ran ./run-tests.py --json and used the following script: import json import subprocess with open("report.json", "r") as f: tests = json.load(f) for name, t in tests.items(): if t["result"] == "success": print("%s successful" % name) subprocess.run("sed -i '/#require py2/d' %s" % name, shell=True) subprocess.run("sed -i '/require.*py2/d' %s" % name, shell=True) Reviewed By: singhsrb Differential Revision: D19664298 fbshipit-source-id: fa67c7c7abd110c9f0df9345daf09f2792aacd44
23 lines
513 B
Perl
23 lines
513 B
Perl
#chg-compatible
|
|
|
|
#if no-windows no-osx
|
|
|
|
$ mkdir -p xdgconf/hg
|
|
$ echo '[ui]' > xdgconf/hg/hgrc
|
|
$ echo 'username = foobar' >> xdgconf/hg/hgrc
|
|
$ XDG_CONFIG_HOME="`pwd`/xdgconf" ; export XDG_CONFIG_HOME
|
|
$ unset HGRCPATH
|
|
$ hg config ui.username 2>/dev/null
|
|
foobar
|
|
|
|
$ mkdir -p home/.config/hg
|
|
$ echo '[ui]' > home/.config/hg/hgrc
|
|
$ echo 'username = bazbaz' >> home/.config/hg/hgrc
|
|
$ HOME="`pwd`/home" ; export HOME
|
|
$ unset XDG_CONFIG_HOME
|
|
$ hg config ui.username 2>/dev/null
|
|
bazbaz
|
|
|
|
|
|
#endif
|