Show More
@@ -50,6 +50,7 b' import re' | |||
|
50 | 50 | from mercurial.node import bin, nullid |
|
51 | 51 | from mercurial.i18n import _ |
|
52 | 52 | from mercurial.pycompat import getattr |
|
53 | from mercurial.thirdparty import attr | |
|
53 | 54 | from mercurial import ( |
|
54 | 55 | cmdutil, |
|
55 | 56 | context, |
@@ -465,6 +466,21 b' class DiffFileType(object):' | |||
|
465 | 466 | BINARY = 3 |
|
466 | 467 | |
|
467 | 468 | |
|
469 | @attr.s | |
|
470 | class phabhunk(dict): | |
|
471 | """Represents a Differential hunk, which is owned by a Differential change | |
|
472 | """ | |
|
473 | ||
|
474 | oldOffset = attr.ib(default=0) # camelcase-required | |
|
475 | oldLength = attr.ib(default=0) # camelcase-required | |
|
476 | newOffset = attr.ib(default=0) # camelcase-required | |
|
477 | newLength = attr.ib(default=0) # camelcase-required | |
|
478 | corpus = attr.ib(default='') | |
|
479 | # These get added to the phabchange's equivalents | |
|
480 | addLines = attr.ib(default=0) # camelcase-required | |
|
481 | delLines = attr.ib(default=0) # camelcase-required | |
|
482 | ||
|
483 | ||
|
468 | 484 | def creatediff(ctx): |
|
469 | 485 | """create a Differential Diff""" |
|
470 | 486 | repo = ctx.repo() |
General Comments 0
You need to be logged in to leave comments.
Login now