hg patterns