File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1010 r"\g<prews><a href='issue\g<id>'>issue\g<ws>\g<id></a>" ),
1111 # matching the typical number:hash format of hg's own output
1212 # and then use use hash instead of the number
13- (re .compile (r'(?P<prews>(^|\s+))(?P<revstr>(rev|hg))(?P<revnumber>\d+):(?P<refhash>[0-9a-fA-F]{12,40})(?P<post>\W+|$)' ),
13+ (re .compile (r'(?P<prews>(^|\s+))(?P<revstr>(rev|hg|changeset: ))(?P<revnumber>\d+):(?P<refhash>[0-9a-fA-F]{12,40})(?P<post>\W+|$)' ),
1414 r'\g<prews><a href="' + hg_url_base + '\g<refhash>">\g<revstr>\g<revnumber>:\g<refhash></a>\g<post>' ),
1515 # matching hg revison number or hash
1616 (re .compile (r'(?P<prews>(^|\s+))(?P<revstr>(revision|rev|r)\s?)(?P<revision>([1-9][0-9]*)|[0-9a-fA-F]{4,40})(?P<post>\W+|$)' ),
@@ -54,3 +54,4 @@ def quicktest(msgstr, should_replace = True):
5454 quicktest ("rev7140eb," )
5555 quicktest ("rev4891:ad3d628e73f2" )
5656 quicktest ("hg4891:ad3d628e73f2" )
57+ quicktest ("changeset: 4542:46239c21a1eb" )
Original file line number Diff line number Diff line change 1010 r"\g<prews><a href='issue\g<id>'>issue\g<ws>\g<id></a>" ),
1111 # matching the typical number:hash format of hg's own output
1212 # and then use use hash instead of the number
13- (re .compile (r'(?P<prews>(^|\s+))(?P<revstr>(rev|hg))(?P<revnumber>\d+):(?P<refhash>[0-9a-fA-F]{12,40})(?P<post>\W+|$)' ),
13+ (re .compile (r'(?P<prews>(^|\s+))(?P<revstr>(rev|hg|changeset: ))(?P<revnumber>\d+):(?P<refhash>[0-9a-fA-F]{12,40})(?P<post>\W+|$)' ),
1414 r'\g<prews><a href="' + hg_url_base + '\g<refhash>">\g<revstr>\g<revnumber>:\g<refhash></a>\g<post>' ),
1515 # matching hg revison number or hash
1616 (re .compile (r'(?P<prews>(^|\s+))(?P<revstr>(revision|rev|r)\s?)(?P<revision>([1-9][0-9]*)|[0-9a-fA-F]{4,40})(?P<post>\W+|$)' ),
@@ -54,3 +54,4 @@ def quicktest(msgstr, should_replace = True):
5454 quicktest ("rev7140eb," )
5555 quicktest ("rev4891:ad3d628e73f2" )
5656 quicktest ("hg4891:ad3d628e73f2" )
57+ quicktest ("changeset: 4542:46239c21a1eb" )
You can’t perform that action at this time.
0 commit comments