# HG changeset patch # User Dirkjan Ochtman # Date 1234438548 -3600 # Node ID e617f2e99e61ceb5fac777f8db635947a34828e1 # Parent 998fc8f62539ee26601d526803d6da2476129411 patch: no need to instantiate a match catch-all in diff() diff -r 998fc8f62539 -r e617f2e99e61 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