record: removed 'has_key' usage
Py3k has removed the dictionary has_key method. This patch implements
a one argument function that can be used as a callback by hg.revert in
the record extension.
adding baradding foo% state dump aftern 666 -1 barn 666 -1 foo% status! bar? bazC foo