Hi, Sam Lee wrote:
Hello,I have a software project that consists of multiple files. All files are version-controlled by RCS. Now, I want to remove one file from the project (because it has become useless after I refactored my code). How do I delete the file, while preserving its history in RCS?
[...] In my understanding this is not really a problem with rcs.It should be sufficient to simply delete the working file (useless.c), and let the archive file (RCS/useless.c,v) in place.
However, you have to take care that the working file is not automatically checked out again from the archive file when you build your project.
Unfortunately you didn't mention *how* you build your project. If you use Gnu make, there are builtin Makefile rules to checkout a working file (useless.c) that is missing if the archive file (RCS/useless.c,v) still exists.
However, this should only happen if you have added the "useless" file to your project files, e.g. if you have an line like
OBJS += useless.oor similar in your Makefile. If you make sure that "useless" is not in the file list of your Makefile, there should be no reason why 'make' should checkout the working file once you have deleted it.
Best regards, Martin -- Martin Burnicki Senior Software Engineer MEINBERG Funkuhren GmbH & Co. KG Email: [email protected] Phone: +49 5281 9309-414 Linkedin: https://www.linkedin.com/in/martinburnicki/ Lange Wand 9, 31812 Bad Pyrmont, Germany Amtsgericht Hannover 17HRA 100322Geschäftsführer/Managing Directors: Günter Meinberg, Werner Meinberg, Andre Hartmann, Heiko Gerstung
Websites: https://www.meinberg.de https://www.meinbergglobal.com Training: https://www.meinberg.academy
OpenPGP_signature
Description: OpenPGP digital signature
