So, that's what I did. "hg status -mar" only shows the id31.py changes, which I'm not ready (per above) to submit yet. I included the complete id51.py file in my previous eMail so you could see the differences (via the two diffs) before I formally submitted a patch.
So, just now I did "hg add chirp/id51.py", and now "hg status -mar" shows the id51.py. I then did "hg diff" and got the output shown at the bottom of this eMail. Note that the diff does not (yet) include adding the D-Star tag field into the "mycall" structure in id31.py; that needs to be verified as needed (98% guess it's needed).
I didn't use the one in tests/images because there isn't one.There is, but I suppose you're using a tarball snapshot which perhaps doesn't have it: % ls tests/images/Icom_ID-31A.img -l -rw-r--r-- 1 dan dan 86K May 6 2012 tests/images/Icom_ID-31A.img
No, I did a "hg clone http://d-rats.com/hg/chirp.hg" I got lots of test files, but none for the ID-31. When I ran the tests, it ran one for the ID-51 (I suppose because I had an image file there -- the test passed), but none for the ID-31.
hg diff: