equal
deleted
inserted
replaced
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]...')) |