mercurial/patch.py
changeset 9725 3f522d2fa633
parent 9712 18b134ef294c
child 10101 155fe35534d3
child 10135 9a4034b630c4
--- a/mercurial/patch.py	Thu Nov 05 15:06:35 2009 +0100
+++ b/mercurial/patch.py	Thu Nov 05 15:18:56 2009 +0100
@@ -1216,7 +1216,7 @@
     if opts is None:
         opts = mdiff.defaultopts
 
-    if not node1:
+    if not node1 and not node2:
         node1 = repo.dirstate.parents()[0]
 
     def lrugetfilectx():