JerryK is spot on, there was a bad batch of fuel lines (hoses), they sucked air and this is the exact symptoms. I thought all dealers knew that. Your explanation is what we see exactly. Change all fuel hoses and bleed the system and she will start like new. Sometimes they would suck air before they would show signs of external leaking. To the non-diesel mechanic, this seems like a poor explanation to a non-start issue, but trust me, it is the most common reason for your issue by far.
Mahindra came out with new hoses a year or so ago, they are grey instead of black and they do not leak. But you can also do as JerryK states and just strip off the crimp and put on new hoses from your local auto parts store. Just replace them all or you will see the problem again. The only one that is tough is the one at the tank, you need to remove the back tire and lower the tank a little.
Technically you are out of warranty for fuel hoses at 4 years, but you can ask your dealer to ask Mahindra to make an exception. Customer satisfaction is important to Mahindra, and this problem is, shall I say, a known issue. That does not mean they are obligated to cover it, but they have been known to take a common sense approach to deals like this.