Akhranovskiy/pattern-matching-hg archive