Mercurial > hg
comparison hgext/blackbox.py @ 19234:7bbad79b9542
merge with stable
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 23 May 2013 17:52:21 -0500 |
parents | 6d6f148cada9 |
children | 7cc77030c557 |
comparison
equal
deleted
inserted
replaced
19233:81d9a7f6f2e7 | 19234:7bbad79b9542 |
---|---|
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]...')) |