diff --git a/contrib/check-code.py b/contrib/check-code.py --- a/contrib/check-code.py +++ b/contrib/check-code.py @@ -95,12 +95,13 @@ utestpats = [ [] ] -for p, m in testpats[0] + testpats[1]: - if p.startswith('^'): - p = uprefix + p[1:] - else: - p = uprefix + p - utestpats.append((p, m)) +for i in [0, 1]: + for p, m in testpats[i]: + if p.startswith('^'): + p = uprefix + p[1:] + else: + p = uprefix + p + utestpats[i].append((p, m)) utestfilters = [ (r"( *)(#([^\n]*\S)?)", repcomment), diff --git a/tests/test-treediscovery.t b/tests/test-treediscovery.t --- a/tests/test-treediscovery.t +++ b/tests/test-treediscovery.t @@ -11,7 +11,8 @@ Tests discovery against servers without Setup HTTP server control: - $ export remote=http://localhost:$HGPORT/ + $ remote=http://localhost:$HGPORT/ + $ export remote $ start() { > echo '[web]' > $1/.hg/hgrc > echo 'push_ssl = false' >> $1/.hg/hgrc