##// END OF EJS Templates
phabricator: convert phabhunk and phabchange keys to bytes when finalising...
Ian Moody -
r43553:162b81e6 default
parent child Browse files
Show More
@@ -518,7 +518,7 b' class phabchange(object):'
518 def addhunk(self, hunk):
518 def addhunk(self, hunk):
519 if not isinstance(hunk, phabhunk):
519 if not isinstance(hunk, phabhunk):
520 raise error.Abort(b'phabchange.addhunk only takes phabhunks')
520 raise error.Abort(b'phabchange.addhunk only takes phabhunks')
521 self.hunks.append(hunk)
521 self.hunks.append(pycompat.byteskwargs(attr.asdict(hunk)))
522 # It's useful to include these stats since the Phab web UI shows them,
522 # It's useful to include these stats since the Phab web UI shows them,
523 # and uses them to estimate how large a change a Revision is. Also used
523 # and uses them to estimate how large a change a Revision is. Also used
524 # in email subjects for the [+++--] bit.
524 # in email subjects for the [+++--] bit.
@@ -549,7 +549,9 b' class phabdiff(object):'
549 def addchange(self, change):
549 def addchange(self, change):
550 if not isinstance(change, phabchange):
550 if not isinstance(change, phabchange):
551 raise error.Abort(b'phabdiff.addchange only takes phabchanges')
551 raise error.Abort(b'phabdiff.addchange only takes phabchanges')
552 self.changes[change.currentPath] = change
552 self.changes[change.currentPath] = pycompat.byteskwargs(
553 attr.asdict(change)
554 )
553
555
554
556
555 def maketext(pchange, ctx, fname):
557 def maketext(pchange, ctx, fname):
General Comments 0
You need to be logged in to leave comments. Login now