mercurial/dispatch.py
changeset 43506 9f70512ae2cf
parent 43238 101ae8bbfa02
child 43706 ac8fd215a776
equal deleted inserted replaced
43505:47fac1692ede 43506:9f70512ae2cf
   656         args = pycompat.maplist(util.expandpath, self.givenargs)
   656         args = pycompat.maplist(util.expandpath, self.givenargs)
   657         return aliasargs(self.fn, args)
   657         return aliasargs(self.fn, args)
   658 
   658 
   659     def __getattr__(self, name):
   659     def __getattr__(self, name):
   660         adefaults = {
   660         adefaults = {
   661             r'norepo': True,
   661             'norepo': True,
   662             r'intents': set(),
   662             'intents': set(),
   663             r'optionalrepo': False,
   663             'optionalrepo': False,
   664             r'inferrepo': False,
   664             'inferrepo': False,
   665         }
   665         }
   666         if name not in adefaults:
   666         if name not in adefaults:
   667             raise AttributeError(name)
   667             raise AttributeError(name)
   668         if self.badalias or util.safehasattr(self, b'shell'):
   668         if self.badalias or util.safehasattr(self, b'shell'):
   669             return adefaults[name]
   669             return adefaults[name]