Show More
@@ -200,6 +200,7 b' class _changelogrevision(object):' | |||||
200 | p1copies = attr.ib(default=None) |
|
200 | p1copies = attr.ib(default=None) | |
201 | p2copies = attr.ib(default=None) |
|
201 | p2copies = attr.ib(default=None) | |
202 | description = attr.ib(default=b'') |
|
202 | description = attr.ib(default=b'') | |
|
203 | branchinfo = attr.ib(default=(_defaultextra[b'branch'], False)) | |||
203 |
|
204 | |||
204 |
|
205 | |||
205 | class changelogrevision(object): |
|
206 | class changelogrevision(object): | |
@@ -372,6 +373,11 b' class changelogrevision(object):' | |||||
372 | def description(self): |
|
373 | def description(self): | |
373 | return encoding.tolocal(self._text[self._offsets[3] + 2 :]) |
|
374 | return encoding.tolocal(self._text[self._offsets[3] + 2 :]) | |
374 |
|
375 | |||
|
376 | @property | |||
|
377 | def branchinfo(self): | |||
|
378 | extra = self.extra | |||
|
379 | return encoding.tolocal(extra.get(b"branch")), b'close' in extra | |||
|
380 | ||||
375 |
|
381 | |||
376 | class changelog(revlog.revlog): |
|
382 | class changelog(revlog.revlog): | |
377 | def __init__(self, opener, trypending=False): |
|
383 | def __init__(self, opener, trypending=False): | |
@@ -601,8 +607,7 b' class changelog(revlog.revlog):' | |||||
601 |
|
607 | |||
602 | This function exists because creating a changectx object |
|
608 | This function exists because creating a changectx object | |
603 | just to access this is costly.""" |
|
609 | just to access this is costly.""" | |
604 |
|
|
610 | return self.changelogrevision(rev).branchinfo | |
605 | return encoding.tolocal(extra.get(b"branch")), b'close' in extra |
|
|||
606 |
|
611 | |||
607 | def _nodeduplicatecallback(self, transaction, node): |
|
612 | def _nodeduplicatecallback(self, transaction, node): | |
608 | # keep track of revisions that got "re-added", eg: unbunde of know rev. |
|
613 | # keep track of revisions that got "re-added", eg: unbunde of know rev. |
General Comments 0
You need to be logged in to leave comments.
Login now