# HG changeset patch # User Yuya Nishihara # Date 2017-05-08 13:14:56 # Node ID 92de09a05d7f8dc3ace9023192c3562ddbdf75ad # Parent ec84db232fc2051f30e62a596fc791b373f72770 registrar: unindent superfluous "if True" block diff --git a/mercurial/registrar.py b/mercurial/registrar.py --- a/mercurial/registrar.py +++ b/mercurial/registrar.py @@ -128,15 +128,14 @@ class command(_funcregistrarbase): def _doregister(self, func, name, options=(), synopsis=None, norepo=False, optionalrepo=False, inferrepo=False): - if True: - func.norepo = norepo - func.optionalrepo = optionalrepo - func.inferrepo = inferrepo - if synopsis: - self._table[name] = func, list(options), synopsis - else: - self._table[name] = func, list(options) - return func + func.norepo = norepo + func.optionalrepo = optionalrepo + func.inferrepo = inferrepo + if synopsis: + self._table[name] = func, list(options), synopsis + else: + self._table[name] = func, list(options) + return func class revsetpredicate(_funcregistrarbase): """Decorator to register revset predicate