We have been working with CVS for years, and frequently find it useful to ‘sticky’ a single file here and there.
Is there any way to do this in subversion, specifically from TortoiseSVN?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Short answer: no.
Long answer:
Working copies are sticky to a branch by definition, as changing to a different branch means changing the base-Subversion-URL used to access the repository.
However sticky-revision files… that’s not a concept that Subversion has.
See:
One workaround might be to manually return the file to a specific revision after doing an update. Perhaps putting something like the following into a script.
Another workaround, as tweakt suggests, is to have a partial branch with just one file in it. This needs very careful management though and things can get a bit.. er… sticky 🙂 , if you’re not vigilant.