Skip to content

Commit 20e8a9e

Browse files
fix pre-commit issues
1 parent 19e3c8d commit 20e8a9e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/setuptools_scm/hg.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def _hg_tagdist_normalize_tagcommit(config, tag, dist, node, branch):
1313
"(branch(.)" # look for revisions in this branch only
1414
" and tag({tag!r})::." # after the last tag
1515
# ignore commits that only modify .hgtags and nothing else:
16-
" and (merge() or file('re:^(?!\.hgtags).*$'))"
16+
" and (merge() or file('re:^(?!\\.hgtags).*$'))"
1717
" and not tag({tag!r}))" # ignore the tagged commit itself
1818
).format(
1919
tag=tag
@@ -70,7 +70,9 @@ def parse(root, config=None):
7070

7171
def get_latest_normalizable_tag(root):
7272
# Gets all tags containing a '.' (see #229) from oldest to newest
73-
cmd = ["hg", "log", "-r", "ancestors(.) and tag('re:\.')", "--template", "{tags}\n"]
73+
cmd = [
74+
"hg", "log", "-r", "ancestors(.) and tag('re:\\.')", "--template", "{tags}\n"
75+
]
7476
outlines = do(cmd, root).split()
7577
if not outlines:
7678
return "null"

0 commit comments

Comments
 (0)