port from bazaar of bugzilla