mercurial/patch.py
changeset 13878 a8d13ee0ce68
parent 13751 85d74f6babf6
child 13970 d13913355390
--- a/mercurial/patch.py	Mon Apr 04 16:21:57 2011 -0500
+++ b/mercurial/patch.py	Mon Apr 04 16:21:59 2011 -0500
@@ -1324,7 +1324,7 @@
         opts = mdiff.defaultopts
 
     if not node1 and not node2:
-        node1 = repo.dirstate.parents()[0]
+        node1 = repo.dirstate.p1()
 
     def lrugetfilectx():
         cache = {}