equal
deleted
inserted
replaced
3626 assert l >= 0 |
3626 assert l >= 0 |
3627 lines.append((l, rs[p:q].rstrip())) |
3627 lines.append((l, rs[p:q].rstrip())) |
3628 p = q |
3628 p = q |
3629 return '\n'.join(' ' * l + s for l, s in lines) |
3629 return '\n'.join(' ' * l + s for l, s in lines) |
3630 |
3630 |
|
3631 def loadpredicate(ui, extname, registrarobj): |
|
3632 """Load revset predicates from specified registrarobj |
|
3633 """ |
|
3634 for name, func in registrarobj._table.iteritems(): |
|
3635 symbols[name] = func |
|
3636 if func._safe: |
|
3637 safesymbols.add(name) |
|
3638 |
3631 # tell hggettext to extract docstrings from these functions: |
3639 # tell hggettext to extract docstrings from these functions: |
3632 i18nfunctions = symbols.values() |
3640 i18nfunctions = symbols.values() |