hgext/blackbox.py
branchstable
changeset 19230 6d6f148cada9
parent 19162 27013ace80eb
child 23877 7cc77030c557
equal deleted inserted replaced
19229:41e39a0299cb 19230:6d6f148cada9
   124     # It doesn't have a .hg directory to put a blackbox in, so we don't do
   124     # It doesn't have a .hg directory to put a blackbox in, so we don't do
   125     # the blackbox setup for it.
   125     # the blackbox setup for it.
   126     if not repo.local():
   126     if not repo.local():
   127         return
   127         return
   128 
   128 
   129     ui.setrepo(repo)
   129     if util.safehasattr(ui, 'setrepo'):
       
   130         ui.setrepo(repo)
   130 
   131 
   131 @command('^blackbox',
   132 @command('^blackbox',
   132     [('l', 'limit', 10, _('the number of events to show')),
   133     [('l', 'limit', 10, _('the number of events to show')),
   133     ],
   134     ],
   134     _('hg blackbox [OPTION]...'))
   135     _('hg blackbox [OPTION]...'))