Calling ui.traceback()

Frank A. Kingswood frank at kingswood-consulting.co.uk
Sun Feb 21 06:04:30 CST 2010


Hallo!

In the Perfarce extension I'm calling ui.traceback() in some exception 
handlers to get some useful info when the user specifies --traceback.
This fails on old versions of Mercurial, where traceback can be None. 
Changing the code to

	if ui.traceback:ui.traceback()

works but I'm not sure this is the right way to handle this.
Comments?

Frank
-- 
------------------------------------------------------------------------
Frank A. Kingswood                      frank at kingswood-consulting.co.uk
Cambridge, United Kingdom                               +44-870-095 0000


More information about the Mercurial-devel mailing list