equal
deleted
inserted
replaced
3417 other = baseset(other - self._hiddenrevs) |
3417 other = baseset(other - self._hiddenrevs) |
3418 |
3418 |
3419 other.sort(reverse=self.isdescending()) |
3419 other.sort(reverse=self.isdescending()) |
3420 return other |
3420 return other |
3421 |
3421 |
|
3422 def prettyformatset(revs): |
|
3423 lines = [] |
|
3424 rs = repr(revs) |
|
3425 p = 0 |
|
3426 while p < len(rs): |
|
3427 q = rs.find('<', p + 1) |
|
3428 if q < 0: |
|
3429 q = len(rs) |
|
3430 l = rs.count('<', 0, p) - rs.count('>', 0, p) |
|
3431 assert l >= 0 |
|
3432 lines.append((l, rs[p:q].rstrip())) |
|
3433 p = q |
|
3434 return '\n'.join(' ' * l + s for l, s in lines) |
|
3435 |
3422 # tell hggettext to extract docstrings from these functions: |
3436 # tell hggettext to extract docstrings from these functions: |
3423 i18nfunctions = symbols.values() |
3437 i18nfunctions = symbols.values() |