Mercurial > evolve
diff hgext3rd/topic/__init__.py @ 6616:9107d91de94e
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.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sun, 17 Dec 2023 12:44:22 -0300 |
parents | 9e442e116621 |
children | b669ded0fe00 |
line wrap: on
line diff
--- 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: