hgext/bugzilla.py
changeset 6747 f6c00b17387c
parent 6548 962eb403165b
child 6762 f67d1468ac50
equal deleted inserted replaced
6746:1dca460e7d1e 6747:f6c00b17387c
   298     if node is None:
   298     if node is None:
   299         raise util.Abort(_('hook type %s does not pass a changeset id') %
   299         raise util.Abort(_('hook type %s does not pass a changeset id') %
   300                          hooktype)
   300                          hooktype)
   301     try:
   301     try:
   302         bz = bugzilla(ui, repo)
   302         bz = bugzilla(ui, repo)
   303         ctx = repo.changectx(node)
   303         ctx = repo[node]
   304         ids = bz.find_bug_ids(ctx)
   304         ids = bz.find_bug_ids(ctx)
   305         if ids:
   305         if ids:
   306             for id in ids:
   306             for id in ids:
   307                 bz.update(id, ctx)
   307                 bz.update(id, ctx)
   308             bz.notify(ids)
   308             bz.notify(ids)