Thanks for your reply Igor. I tried it and it is working as expected.
I just want to clarify one more thing. When we append the link of parent tweet while retweeting, it (link of parent tweet) won’t be accounted in 140 chars of tweet once twitter introduces the char count changes on 24th july.