Mercurial > public > mercurial-scm > hg-stable
diff hgext/extdiff.py @ 9523:d932dc655881
Merge with -stable
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 03 Oct 2009 14:39:57 -0500 |
parents | e7bde4680eec 0d3c1aa9d5de |
children | 11d7ee94b56a |
line wrap: on
line diff
--- a/hgext/extdiff.py Sat Oct 03 14:39:46 2009 -0500 +++ b/hgext/extdiff.py Sat Oct 03 14:39:57 2009 -0500 @@ -216,11 +216,11 @@ that revision is compared to the working directory, and, when no revisions are specified, the working directory files are compared to its parent.''' - program = opts['program'] or 'diff' - if opts['program']: - option = opts['option'] - else: - option = opts['option'] or ['-Npru'] + program = opts.get('program') + option = opts.get('option') + if not program: + program = 'diff' + option = option or ['-Npru'] return dodiff(ui, repo, program, option, pats, opts) cmdtable = {