Show More
@@ -503,8 +503,11 b' class queue(object):' | |||
|
503 | 503 | self.guardsdirty = False |
|
504 | 504 | self.activeguards = None |
|
505 | 505 | |
|
506 | def diffopts(self, opts=None, patchfn=None): | |
|
507 | diffopts = patchmod.diffopts(self.ui, opts) | |
|
506 | def diffopts(self, opts=None, patchfn=None, plain=False): | |
|
507 | """Return diff options tweaked for this mq use, possibly upgrading to | |
|
508 | git format, and possibly plain and without lossy options.""" | |
|
509 | diffopts = patchmod.difffeatureopts(self.ui, opts, | |
|
510 | git=True, whitespace=not plain, formatchanging=not plain) | |
|
508 | 511 | if self.gitmode == 'auto': |
|
509 | 512 | diffopts.upgrade = True |
|
510 | 513 | elif self.gitmode == 'keep': |
@@ -1177,7 +1180,7 b' class queue(object):' | |||
|
1177 | 1180 | date = opts.get('date') |
|
1178 | 1181 | if date: |
|
1179 | 1182 | date = util.parsedate(date) |
|
1180 | diffopts = self.diffopts({'git': opts.get('git')}) | |
|
1183 | diffopts = self.diffopts({'git': opts.get('git')}, plain=True) | |
|
1181 | 1184 | if opts.get('checkname', True): |
|
1182 | 1185 | self.checkpatchname(patchfn) |
|
1183 | 1186 | inclsubs = checksubstate(repo) |
@@ -1642,7 +1645,8 b' class queue(object):' | |||
|
1642 | 1645 | substatestate = repo.dirstate['.hgsubstate'] |
|
1643 | 1646 | |
|
1644 | 1647 | ph = patchheader(self.join(patchfn), self.plainmode) |
|
1645 |
diffopts = self.diffopts({'git': opts.get('git')}, patchfn |
|
|
1648 | diffopts = self.diffopts({'git': opts.get('git')}, patchfn, | |
|
1649 | plain=True) | |
|
1646 | 1650 | if newuser: |
|
1647 | 1651 | ph.setuser(newuser) |
|
1648 | 1652 | if newdate: |
@@ -235,13 +235,35 b' Test how [diff] configuration influence ' | |||
|
235 | 235 | # Date 0 0 |
|
236 | 236 | # Parent cf0bfe72686a47d8d7d7b4529a3adb8b0b449a9f |
|
237 | 237 | |
|
238 | diff -r cf0bfe72686a -r fb9c4422b0f3 a | |
|
239 | --- a/a | |
|
240 | +++ b/a | |
|
241 | @@ -1,1 +1,1 @@ | |
|
242 | -a | |
|
243 | + a | |
|
238 | 244 |
$ |
|
239 | 245 | # HG changeset patch |
|
240 | 246 | # Date 0 0 |
|
241 | 247 | # Parent fb9c4422b0f37dd576522dd9a3f99b825c177efe |
|
242 | 248 | |
|
243 |
diff --git |
|
|
244 | Binary file b has changed | |
|
249 | diff --git a/a b/a | |
|
250 | --- a/a | |
|
251 | +++ b/a | |
|
252 | @@ -1,1 +1,1 @@ | |
|
253 | - a | |
|
254 | + a | |
|
255 | diff --git a/b b/b | |
|
256 | index 78981922613b2afb6025042ff6bd878ac1994e85..f76dd238ade08917e6712764a16a22005a50573d | |
|
257 | GIT binary patch | |
|
258 | literal 1 | |
|
259 | Ic${MZ000310RR91 | |
|
260 | ||
|
261 | diff --git a/c b/c | |
|
262 | --- a/c | |
|
263 | +++ b/c | |
|
264 | @@ -1,1 +1,2 @@ | |
|
265 | a | |
|
266 | + | |
|
245 | 267 | |
|
246 | 268 | $ cd .. |
|
247 | 269 |
General Comments 0
You need to be logged in to leave comments.
Login now