"I hadn't told you this but I had gotten pregnant"= I got pregnant but didn't tell you
"I haven't told you this, but i have gotten pregnant." = I am pregnant is the result now... i would say " I haven't told you this, but I'm pregnant." I am telling you the news (information you don't know)