mercurial/changegroup.py
changeset 26751 520defbc0335
parent 26712 04176eaf911b
child 26859 e7c618cee8df
--- a/mercurial/changegroup.py	Sat Oct 17 01:15:34 2015 +0900
+++ b/mercurial/changegroup.py	Sat Oct 17 01:15:34 2015 +0900
@@ -407,15 +407,13 @@
             repo.invalidatevolatilesets()
 
             if changesets > 0:
-                p = lambda: tr.writepending() and repo.root or ""
                 if 'node' not in tr.hookargs:
                     tr.hookargs['node'] = hex(cl.node(clstart))
                     hookargs = dict(tr.hookargs)
                 else:
                     hookargs = dict(tr.hookargs)
                     hookargs['node'] = hex(cl.node(clstart))
-                repo.hook('pretxnchangegroup', throw=True, pending=p,
-                          **hookargs)
+                repo.hook('pretxnchangegroup', throw=True, **hookargs)
 
             added = [cl.node(r) for r in xrange(clstart, clend)]
             publishing = repo.publishing()