Mercurial > public > mercurial-scm > hg
comparison hgext/extdiff.py @ 9956:6045a8c4dbbc stable
extdiff: respect --option in command aliases (issue949)
author | Sune Foldager <cryo@cyanite.org> |
---|---|
date | Mon, 30 Nov 2009 19:37:38 +0100 |
parents | 11d7ee94b56a |
children | ad44e1f8b3f3 25e572394f5c |
comparison
equal
deleted
inserted
replaced
9954:d6a307719ccb | 9956:6045a8c4dbbc |
---|---|
251 else: | 251 else: |
252 path, diffopts = cmd, [] | 252 path, diffopts = cmd, [] |
253 def save(cmd, path, diffopts): | 253 def save(cmd, path, diffopts): |
254 '''use closure to save diff command to use''' | 254 '''use closure to save diff command to use''' |
255 def mydiff(ui, repo, *pats, **opts): | 255 def mydiff(ui, repo, *pats, **opts): |
256 return dodiff(ui, repo, path, diffopts, pats, opts) | 256 return dodiff(ui, repo, path, diffopts + opts['option'], |
257 pats, opts) | |
257 doc = _('''\ | 258 doc = _('''\ |
258 use %(path)s to diff repository (or selected files) | 259 use %(path)s to diff repository (or selected files) |
259 | 260 |
260 Show differences between revisions for the specified files, using the | 261 Show differences between revisions for the specified files, using the |
261 %(path)s program. | 262 %(path)s program. |