There's b for Mercurial:
http://www.digitalgemstones.com/projects/b/
It's not very active, but it's the same idea. Distributed bug tracking has been around for a long time. I think Fossil also does it and probably has the tightest integration, since it's Fossil.