patch: no need to instantiate a match catch-all in diff()
authorDirkjan Ochtman <dirkjan@ochtman.nl>
Thu, 12 Feb 2009 12:35:48 +0100
changeset 7753 e617f2e99e61
parent 7752 998fc8f62539
child 7754 ab00d2c281a8
patch: no need to instantiate a match catch-all in diff()
mercurial/patch.py
--- a/mercurial/patch.py	Wed Jan 28 20:06:59 2009 -0600
+++ b/mercurial/patch.py	Thu Feb 12 12:35:48 2009 +0100
@@ -1201,9 +1201,6 @@
     if node1 is None, use first dirstate parent instead.
     if node2 is None, compare node1 with working directory.'''
 
-    if not match:
-        match = cmdutil.matchall(repo)
-
     if opts is None:
         opts = mdiff.defaultopts