It's a little tortuous, perhaps, but you can specify a version to install. So, if you have two repos defined (say, 4.0 and 4.1) then
apt-get update
followed by
apt-cache policy tvheadend
will give you a list of all candidate versions from both repos. You can then
apt-get install tvheadend=version
to install the specific version you want from either repository. Once you're happy, then removing the 4.1 repo and running
apt-get update
again will leave you on the pre-stable branch for future
apt-get upgrade
updates.
If you uninstall and reinstall, I
believe your settings should survive, as there's specifically an
apt-get purge
command that's designed to completely remove a package, config and all. However, I'd make sure you have a good backup first, just in case (make sure you preserve permissions and ownership, so backup either as hts or as root and use
cp -a
('archive')). That leaves you free to try the above approach or the un/reinstall method.
If you need to restore, shut down the tvheadend service, restore the files, then restart it.