add collapse and histedit for hg history edits