Comment 11 for bug 215674

Revision history for this message
John A Meinel (jameinel) wrote :

No, the post_uncommit hook has the signature:
(local, master, old_revno, old_revid, new_revno, new_revid)

'old_revid' and 'new_revid' give you the indication of what the branch tip used to be at, and where it is now. Those revisions will not have been removed by the repository, so doing:

local.repository.get_revision(old_revid) should work fine.

You'll want to decide how you want to iterate the revisions that were uncommitted. (Do you just want the mainline, or do you want all of the merged revisions as well?) Uncommit (ATM) only follows along the mainline, so iterating the removed revisions is pretty trivial.