diff mercurial/patch.py @ 13878:a8d13ee0ce68

misc: replace .parents()[0] with p1()
author Matt Mackall <mpm@selenic.com>
date Mon, 04 Apr 2011 16:21:59 -0500
parents 85d74f6babf6
children d13913355390
line wrap: on
line diff
--- 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 = {}