hgext/phabricator.py
changeset 43829 16b607e9f714
parent 43549 4cb3f5bb29ec
child 43839 70060915c3f2
equal deleted inserted replaced
43828:36444dddaeb4 43829:16b607e9f714
   401             if has_node(n):
   401             if has_node(n):
   402                 for tag in unfi.nodetags(n):
   402                 for tag in unfi.nodetags(n):
   403                     m = _differentialrevisiontagre.match(tag)
   403                     m = _differentialrevisiontagre.match(tag)
   404                     if m:
   404                     if m:
   405                         toconfirm[node] = (0, set(precnodes), int(m.group(1)))
   405                         toconfirm[node] = (0, set(precnodes), int(m.group(1)))
   406                         continue
   406                         break
   407 
   407                 else:
   408         # Check commit message
   408                     continue  # move to next predecessor
   409         m = _differentialrevisiondescre.search(ctx.description())
   409                 break  # found a tag, stop
   410         if m:
   410         else:
   411             toconfirm[node] = (1, set(precnodes), int(m.group('id')))
   411             # Check commit message
       
   412             m = _differentialrevisiondescre.search(ctx.description())
       
   413             if m:
       
   414                 toconfirm[node] = (1, set(precnodes), int(m.group('id')))
   412 
   415 
   413     # Double check if tags are genuine by collecting all old nodes from
   416     # Double check if tags are genuine by collecting all old nodes from
   414     # Phabricator, and expect precursors overlap with it.
   417     # Phabricator, and expect precursors overlap with it.
   415     if toconfirm:
   418     if toconfirm:
   416         drevs = [drev for force, precs, drev in toconfirm.values()]
   419         drevs = [drev for force, precs, drev in toconfirm.values()]