Re: svn up: ask if keep deleted, or restore?
From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2004-03-17 15:50:11 CET
solo turn wrote:
We welcome user feedback, preferably on the "users@" mailing list. A summary of it might later be entered in the issue tracker if it turns out to be a likely candidate for future work, or else it might be added to the documentation if that seems appropriate.
> an option of keeping deleted files deleted would be nice. currently, the only way of deleting
A very interesting observation. It would be very easy to respond with "The user should learn to use the version control system," but in this case I think I agree with those users.
If I delete the content of a file, and then "svn update", then Subversion will not add the content back in (except for any new lines that have appeared in the repository's copy since the previous update). If I delete the whole file, but haven't got around to issuing "svn delete" yet, and then I update, I would consider it somewhat rude and inconsistent of Subversion to restore the file.
(If the file were missing because the WC was incomplete, then of course it should be created, but that is an entirely different matter and presumably the text base would have been missing too.)
I don't see this as a very strong issue, nor one that needs to be configurable, but it is worth considering. At the moment I can't think of a convincing use case for the present behaviour. Providing an easy way to revert a file is no argument, because we have a command for doing that, but maybe that was the original reason for it, before "svn revert" existed. Can anyone shed more light on it?
- Julian
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.