##// END OF EJS Templates
py3: use r'' for group name arguments to MatchObjects in phabricator.py...
Ian Moody -
r42071:16d05067 default
parent child Browse files
Show More
@@ -304,7 +304,7 b' def getoldnodedrevmap(repo, nodelist):'
304 # Check commit message
304 # Check commit message
305 m = _differentialrevisiondescre.search(ctx.description())
305 m = _differentialrevisiondescre.search(ctx.description())
306 if m:
306 if m:
307 toconfirm[node] = (1, set(precnodes), int(m.group(b'id')))
307 toconfirm[node] = (1, set(precnodes), int(m.group(r'id')))
308
308
309 # Double check if tags are genuine by collecting all old nodes from
309 # Double check if tags are genuine by collecting all old nodes from
310 # Phabricator, and expect precursors overlap with it.
310 # Phabricator, and expect precursors overlap with it.
@@ -555,7 +555,7 b' def phabsend(ui, repo, *revs, **opts):'
555 # Create a local tag to note the association, if commit message
555 # Create a local tag to note the association, if commit message
556 # does not have it already
556 # does not have it already
557 m = _differentialrevisiondescre.search(ctx.description())
557 m = _differentialrevisiondescre.search(ctx.description())
558 if not m or int(m.group(b'id')) != newrevid:
558 if not m or int(m.group(r'id')) != newrevid:
559 tagname = b'D%d' % newrevid
559 tagname = b'D%d' % newrevid
560 tags.tag(repo, tagname, ctx.node(), message=None, user=None,
560 tags.tag(repo, tagname, ctx.node(), message=None, user=None,
561 date=None, local=True)
561 date=None, local=True)
@@ -1001,8 +1001,8 b' def template_review(context, mapping):'
1001 m = _differentialrevisiondescre.search(ctx.description())
1001 m = _differentialrevisiondescre.search(ctx.description())
1002 if m:
1002 if m:
1003 return templateutil.hybriddict({
1003 return templateutil.hybriddict({
1004 b'url': m.group(b'url'),
1004 b'url': m.group(r'url'),
1005 b'id': b"D{}".format(m.group(b'id')),
1005 b'id': b"D{}".format(m.group(r'id')),
1006 })
1006 })
1007 else:
1007 else:
1008 tags = ctx.repo().nodetags(ctx.node())
1008 tags = ctx.repo().nodetags(ctx.node())
General Comments 0
You need to be logged in to leave comments. Login now