merge: fix spurious merges for copies in linear updates
We make better use of contexts to accurately identify copies that
don't need merges.
Add a simple test and update other tests.
#!/bin/shhghg -qhg helphg -q helphg add -hhg add --skjdfkshg help diffhg help statushg -q help statushg help foohg skjdfksexit0