revert: don't assume ignored files will be returned in the unknown list
That's just an artifact of the current implementation, and I'll change
that soon.
Bonus points:
- we don't care about the unknown list at all
- we don't print an extra message if we try to revert a removed file
that is not present in the target revision
#!/bin/sh
"$TESTDIR/hghave" execbit || exit 80
hg init repo
cd repo
echo foo > foo
chmod 644 foo
hg ci -qAm '644'
chmod 755 foo
hg ci -qAm '755'
echo '% reverting to rev 0'
hg revert -a -r 0
hg st
hg diff --git