mercurial/hook.py
branchstable
changeset 26858 9f272bf3b342
parent 26751 520defbc0335
child 26861 10a1a4b3e775
--- a/mercurial/hook.py	Tue Nov 03 12:31:33 2015 -0800
+++ b/mercurial/hook.py	Tue Nov 03 16:58:13 2015 -0800
@@ -122,7 +122,8 @@
     # make in-memory changes visible to external process
     tr = repo.currenttransaction()
     repo.dirstate.write(tr)
-    if tr and tr.writepending():
+    if tr:
+        tr.writepending()
         env['HG_PENDING'] = repo.root
 
     for k, v in args.iteritems():