##// END OF EJS Templates
repoview: display stack trace along side the debug message...
marmoute -
r44194:d2a7f0aa default
parent child Browse files
Show More
@@ -218,8 +218,18 def filterrevs(repo, filtername, visibil
218 cache it's result"""
218 cache it's result"""
219 if filtername not in repo.filteredrevcache:
219 if filtername not in repo.filteredrevcache:
220 if repo.ui.configbool(b'devel', b'debug.repo-filters'):
220 if repo.ui.configbool(b'devel', b'debug.repo-filters'):
221 msg = b'debug.filters: computing revision filter for "%s"\n'
221 msg = b'computing revision filter for "%s"'
222 repo.ui.debug(msg % filtername)
222 msg %= filtername
223 if repo.ui.tracebackflag and repo.ui.debugflag:
224 # XXX use ui.write_err
225 util.debugstacktrace(
226 msg,
227 f=repo.ui._fout,
228 otherf=repo.ui._ferr,
229 prefix=b'debug.filters: ',
230 )
231 else:
232 repo.ui.debug(b'debug.filters: %s\n' % msg)
223 func = filtertable[filtername]
233 func = filtertable[filtername]
224 if visibilityexceptions:
234 if visibilityexceptions:
225 return func(repo.unfiltered, visibilityexceptions)
235 return func(repo.unfiltered, visibilityexceptions)
General Comments 0
You need to be logged in to leave comments. Login now