[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to delete file in RCS
From: |
Martin Burnicki |
Subject: |
Re: How to delete file in RCS |
Date: |
Thu, 4 Nov 2021 09:45:01 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 |
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.o
or 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: martin.burnicki@meinberg.de
Phone: +49 5281 9309-414
Linkedin: https://www.linkedin.com/in/martinburnicki/
Lange Wand 9, 31812 Bad Pyrmont, Germany
Amtsgericht Hannover 17HRA 100322
Geschä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