Show More
@@ -254,7 +254,8 b' def uisetup(ui):' | |||||
254 | def save(cmd, path, diffopts): |
|
254 | def save(cmd, path, diffopts): | |
255 | '''use closure to save diff command to use''' |
|
255 | '''use closure to save diff command to use''' | |
256 | def mydiff(ui, repo, *pats, **opts): |
|
256 | def mydiff(ui, repo, *pats, **opts): | |
257 |
return dodiff(ui, repo, path, diffopts |
|
257 | return dodiff(ui, repo, path, diffopts + opts['option'], | |
|
258 | pats, opts) | |||
258 | doc = _('''\ |
|
259 | doc = _('''\ | |
259 | use %(path)s to diff repository (or selected files) |
|
260 | use %(path)s to diff repository (or selected files) | |
260 |
|
261 |
@@ -65,3 +65,9 b' chmod +x differ.py' | |||||
65 | hg extdiff -p `pwd`/differ.py # will change to /tmp/extdiff.TMP and populate directories a.TMP and a and start tool |
|
65 | hg extdiff -p `pwd`/differ.py # will change to /tmp/extdiff.TMP and populate directories a.TMP and a and start tool | |
66 | echo '% diff in working directory, after' |
|
66 | echo '% diff in working directory, after' | |
67 | hg diff --git |
|
67 | hg diff --git | |
|
68 | ||||
|
69 | echo | |||
|
70 | echo % test extdiff with --option | |||
|
71 | hg extdiff -p echo -o this -c 1 | |||
|
72 | hg falabala -o this -c 1 | |||
|
73 | echo |
General Comments 0
You need to be logged in to leave comments.
Login now