mercurial/changegroup.py
changeset 36737 2a5024109490
parent 36465 94709406f10d
child 36760 7bf80d9d9543
equal deleted inserted replaced
36736:5c72b52d3dd0 36737:2a5024109490
   409                         repo.hook("incoming", **pycompat.strkwargs(args))
   409                         repo.hook("incoming", **pycompat.strkwargs(args))
   410 
   410 
   411                     newheads = [h for h in repo.heads()
   411                     newheads = [h for h in repo.heads()
   412                                 if h not in oldheads]
   412                                 if h not in oldheads]
   413                     repo.ui.log("incoming",
   413                     repo.ui.log("incoming",
   414                                 "%s incoming changes - new heads: %s\n",
   414                                 "%d incoming changes - new heads: %s\n",
   415                                 len(added),
   415                                 len(added),
   416                                 ', '.join([hex(c[:6]) for c in newheads]))
   416                                 ', '.join([hex(c[:6]) for c in newheads]))
   417 
   417 
   418                 tr.addpostclose('changegroup-runhooks-%020i' % clstart,
   418                 tr.addpostclose('changegroup-runhooks-%020i' % clstart,
   419                                 lambda tr: repo._afterlock(runhooks))
   419                                 lambda tr: repo._afterlock(runhooks))