Mercurial > hg
changeset 2959:7f5fc4b347de
extdiff: make new diff commands pick up their options correctly
author | TK Soh <teekaysoh@yahoo.com> |
---|---|
date | Thu, 17 Aug 2006 15:30:45 -0500 |
parents | ff3ea21a981a |
children | 61afc32c1a49 |
files | hgext/extdiff.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/extdiff.py Fri Aug 18 22:13:58 2006 -0700 +++ b/hgext/extdiff.py Thu Aug 17 15:30:45 2006 -0500 @@ -153,7 +153,7 @@ if not path: path = cmd diffopts = ui.config('extdiff', 'opts.' + cmd, '') diffopts = diffopts and [diffopts] or [] - def save(cmd, path): + def save(cmd, path, diffopts): '''use closure to save diff command to use''' def mydiff(ui, repo, *pats, **opts): return dodiff(ui, repo, path, diffopts, pats, opts) @@ -170,6 +170,6 @@ 'path': path, } return mydiff - cmdtable[cmd] = (save(cmd, path), + cmdtable[cmd] = (save(cmd, path, diffopts), cmdtable['extdiff'][1][1:], _('hg %s [OPT]... [FILE]...') % cmd)