# HG changeset patch # User Raphaël Gomès # Date 1669385680 -3600 # Node ID f56873a7284c7b7c2ad3dcdffcc449ee75df27ae # Parent 45d7b8c380d752739e4c3eb402bcae3840330e94# Parent c6f0bcb7bc571f4e3629aa3b4202e5a60f14e99b branching: merge stable into default diff -r 45d7b8c380d7 -r f56873a7284c mercurial/help.py --- a/mercurial/help.py Tue Nov 22 12:44:22 2022 +0100 +++ b/mercurial/help.py Fri Nov 25 15:14:40 2022 +0100 @@ -907,7 +907,7 @@ if missing_order: ui.develwarn( b'help categories missing from CATEGORY_ORDER: %s' - % missing_order + % stringutil.forcebytestr(missing_order) ) # List per category. @@ -940,7 +940,7 @@ if missing_order: ui.develwarn( b'help categories missing from TOPIC_CATEGORY_ORDER: %s' - % missing_order + % stringutil.forcebytestr(missing_order) ) # Output topics per category. diff -r 45d7b8c380d7 -r f56873a7284c mercurial/match.py --- a/mercurial/match.py Tue Nov 22 12:44:22 2022 +0100 +++ b/mercurial/match.py Fri Nov 25 15:14:40 2022 +0100 @@ -1323,7 +1323,7 @@ return res -FLAG_RE = util.re.compile(b'^\(\?([aiLmsux]+)\)(.*)') +FLAG_RE = util.re.compile(br'^\(\?([aiLmsux]+)\)(.*)') def _regex(kind, pat, globsuffix): diff -r 45d7b8c380d7 -r f56873a7284c mercurial/setdiscovery.py --- a/mercurial/setdiscovery.py Tue Nov 22 12:44:22 2022 +0100 +++ b/mercurial/setdiscovery.py Fri Nov 25 15:14:40 2022 +0100 @@ -99,9 +99,9 @@ """ if len(sample) <= desiredlen: return sample + sample = list(sample) if randomize: return set(random.sample(sample, desiredlen)) - sample = list(sample) sample.sort() return set(sample[:desiredlen]) diff -r 45d7b8c380d7 -r f56873a7284c tests/test-push-race.t --- a/tests/test-push-race.t Tue Nov 22 12:44:22 2022 +0100 +++ b/tests/test-push-race.t Fri Nov 25 15:14:40 2022 +0100 @@ -48,6 +48,14 @@ > if watchpath is not None: > ui.status(b'waiting on: %s\n' % watchpath) > limit = 100 + > test_default_timeout = os.environ.get('HGTEST_TIMEOUT_DEFAULT') + > test_timeout = os.environ.get('HGTEST_TIMEOUT') + > if ( + > test_default_timeout is not None + > and test_timeout is not None + > and test_default_timeout < test_timeout + > ): + > limit = int(limit * (test_timeout / test_default_timeout)) > while 0 < limit and not os.path.exists(watchpath): > limit -= 1 > time.sleep(0.1)