Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/patch.py @ 7753:e617f2e99e61
patch: no need to instantiate a match catch-all in diff()
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Thu, 12 Feb 2009 12:35:48 +0100 |
parents | edcb56991afe |
children | 2c5b2abfb8be |
comparison
equal
deleted
inserted
replaced
7752:998fc8f62539 | 7753:e617f2e99e61 |
---|---|
1199 working directory. | 1199 working directory. |
1200 | 1200 |
1201 if node1 is None, use first dirstate parent instead. | 1201 if node1 is None, use first dirstate parent instead. |
1202 if node2 is None, compare node1 with working directory.''' | 1202 if node2 is None, compare node1 with working directory.''' |
1203 | 1203 |
1204 if not match: | |
1205 match = cmdutil.matchall(repo) | |
1206 | |
1207 if opts is None: | 1204 if opts is None: |
1208 opts = mdiff.defaultopts | 1205 opts = mdiff.defaultopts |
1209 | 1206 |
1210 if not node1: | 1207 if not node1: |
1211 node1 = repo.dirstate.parents()[0] | 1208 node1 = repo.dirstate.parents()[0] |