mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +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
19 lines
608 B
Python
19 lines
608 B
Python
from __future__ import absolute_import, print_function
|
|
|
|
from edenscm.mercurial import hg
|
|
from hghave import require
|
|
|
|
|
|
def testparse(url, branch=[]):
|
|
print("%s, branches: %r" % hg.parseurl(url, branch))
|
|
|
|
|
|
testparse("http://example.com/no/anchor")
|
|
testparse("http://example.com/an/anchor#foo")
|
|
testparse("http://example.com/no/anchor/branches", branch=["foo"])
|
|
testparse("http://example.com/an/anchor/branches#bar", branch=["foo"])
|
|
testparse("http://example.com/an/anchor/branches-None#foo", branch=None)
|
|
testparse("http://example.com/")
|
|
testparse("http://example.com")
|
|
testparse("http://example.com#foo")
|