When I run hg outgoing -v I see the outgoing changeset and all files it includes. I forgot to set Mercurial to ignore images, and I’ve realised that my outgoing contains images. I’d like to remove all .jpg files from outgoing.
I did another hg commit after the one that added the images, so hg rollback doesn’t seem to be an option. I’ve tried running hg push, but I aborted since it took too long to finish (because of the images). Can I fix this without starting the repository again?
Yes. In your case, the most simple approach is probably:
-rto get everything but the commit that you don’t want. You can usehg logon the new repo to make sure you have what you want..hgignore, etc.hg export -r ...) and apply it to the “good” clone (hg import)hgrcagain. Just compare the content of the.hg/hgrcfiles of your broken and good repo.