I've not had a hernia op, but have had both a C section and Appendicetomy.
After the section, your not recommened to do anything too strenuous for 6 weeks. (This included lifting children... hang on I'd just had a baby!)
I felt fine after 3-4, but I wouldn't try anything until after 4.