I am looking for a script that would enable debian backports for debian squeeze, something that I could just run and will enable me to install new packages like a decent version of mercurial after, just by doing
apt-get upgrade mercurial.
Read this and put the instructions there in a script. What's the problem with it?
And then you can do