@@ -255,13 +255,13 @@ def linkify_bug_numbers(text: str) -> str:
255255 return re .sub (search , replace , str (text ), flags = re .IGNORECASE )
256256
257257
258- def linkify_revision_urls (text : str ) -> str :
258+ def linkify_phabricator_revision_urls (text : str ) -> str :
259259 search = r"(?=\b)(" + re .escape (settings .PHABRICATOR_URL ) + r"/D\d+)(?=\b)"
260260 replace = r'<a href="\g<1>">\g<1></a>'
261261 return re .sub (search , replace , str (text ), flags = re .IGNORECASE )
262262
263263
264- def linkify_revision_ids (text : str ) -> str :
264+ def linkify_phabricator_revision_ids (text : str ) -> str :
265265 """Linkify revision IDs to proper Phabricator URLs."""
266266 search = r"\b(D\d+)\b"
267267 replace = (
@@ -321,7 +321,7 @@ def pull_request_link(repo: Repo, revision: Revision) -> str:
321321 return f"{ repo .normalized_url } /pull/{ revision .pull_number } "
322322
323323
324- def revision_url (revision_id : int | str , diff_id : str | None = None ) -> str :
324+ def phabricator_revision_url (revision_id : int | str , diff_id : str | None = None ) -> str :
325325 if isinstance (revision_id , int ):
326326 path = f"D{ revision_id } "
327327 elif isinstance (revision_id , str ) and not revision_id .startswith ("D" ):
@@ -461,8 +461,8 @@ def environment(**options): # noqa: ANN201
461461 "graph_x_pos" : graph_x_pos ,
462462 "linkify_bug_numbers" : linkify_bug_numbers ,
463463 "linkify_faq" : linkify_faq ,
464- "linkify_revision_ids " : linkify_revision_ids ,
465- "linkify_revision_urls " : linkify_revision_urls ,
464+ "linkify_phabricator_revision_ids " : linkify_phabricator_revision_ids ,
465+ "linkify_phabricator_revision_urls " : linkify_phabricator_revision_urls ,
466466 "linkify_sec_bug_docs" : linkify_sec_bug_docs ,
467467 "linkify_transplant_details" : linkify_transplant_details ,
468468 "message_type_to_notification_class" : message_type_to_notification_class ,
@@ -472,7 +472,7 @@ def environment(**options): # noqa: ANN201
472472 "reviewer_to_action_text" : reviewer_to_action_text ,
473473 "reviewer_to_status_badge_class" : reviewer_to_status_badge_class ,
474474 "revision_status_to_badge_class" : revision_status_to_badge_class ,
475- "revision_url " : revision_url ,
475+ "phabricator_revision_url " : phabricator_revision_url ,
476476 "static" : static ,
477477 "tostatusbadgeclass" : tostatusbadgeclass ,
478478 "tostatusbadgename" : tostatusbadgename ,
0 commit comments