save HgManager in instance variable, use HgManager for switching branches