# HG changeset patch # User Anton Shestakov # Date 1702827862 10800 # Node ID 9107d91de94ec2916b53e18b57895fa2126ca7fd # Parent 9e442e116621739cac08153ca91065463ce9ba73 topic: update comment in the topic namespace name check The better way would be to make this code reusable for both topics and topic namespaces and have a more generic comment, but the refactoring is a little complicated because of user-visible messages, and it's not that important, so let's leave it as is. diff -r 9e442e116621 -r 9107d91de94e hgext3rd/topic/__init__.py --- a/hgext3rd/topic/__init__.py Sat Dec 16 14:22:16 2023 -0300 +++ b/hgext3rd/topic/__init__.py Sun Dec 17 12:44:22 2023 -0300 @@ -1104,7 +1104,7 @@ utopic = encoding.unifromlocal(topic) except error.Abort: # Maybe we should allow these topic names as well, as long as they - # don't break any other rules + # don't break any other rules. utopic = '' rmatch = re.match(r'[-_.\w]+', utopic, re.UNICODE) if not utopic or not rmatch or rmatch.group(0) != utopic: @@ -1851,8 +1851,8 @@ try: utns = encoding.unifromlocal(tns) except error.Abort: - # Maybe we should allow these topic names as well, as long as they - # don't break any other rules + # Maybe we should allow these topic namespace names as well, as + # long as they don't break any other rules. utns = '' rmatch = re.match(r'[-_.\w]+', utns, re.UNICODE) if not utns or not rmatch or rmatch.group(0) != utns: