mercurial/changegroup.py
changeset 21151 240d340fe152
parent 21063 7ca4f2049d3b
child 21152 30bce7e60140
--- a/mercurial/changegroup.py	Thu Apr 17 17:04:59 2014 -0400
+++ b/mercurial/changegroup.py	Thu Apr 17 17:09:20 2014 -0400
@@ -673,6 +673,8 @@
 
         if changesets > 0:
             p = lambda: cl.writepending() and repo.root or ""
+            if 'node' not in tr.hookargs:
+                tr.hookargs['node'] = hex(cl.node(clstart))
             repo.hook('pretxnchangegroup', throw=True,
                       node=hex(cl.node(clstart)), source=srctype,
                       url=url, pending=p)