4

I am accessing some source code controlled in RCS on Windows.

How can I find out in which revision particular lines of source code were last changed? The feature is variously called 'blame' or 'annotate' depending on the VCS.

The http://blame.sourceforge.net/ project sounds like its Linux only.

Sam
  • 581
  • 4
  • 17
  • In `git`, `bisect` is totally unrelated to `blame`. – William Pursell Dec 07 '12 at 19:58
  • @WilliamPursell Thanks, updated question accordingly – Sam Dec 10 '12 at 11:01
  • Note that the [Blame on Sourceforge](http://blame.sourceforge.net/) page cited in the question is missing altogether. There is a website for [RCS Blame](https://invisible-island.net/rcs-blame/rcs-blame.html) which notes that the Sourceforge page is missing but provides links to the code that was recovered from elsewhere. It appears that the latest release as I type was version 1.3.1-20221108 — which means that the code is maintained. It isn't immediately clear why the date-annotated versions (there's another from January 2022) were not designated 1.3.2 and 1.3.3. – Jonathan Leffler Jan 09 '23 at 22:42
  • There's also a related program `rcshist` available from the same site — [rcshist](https://invisible-island.net/rcshist/rcshist.html). Be aware that that (as of 2023-01-09), the latest version of the code in the archives link is [rcshist-1.04.20221002.tgz](https://invisible-island.net/archives/rcshist/rcshist-1.04-20221002.tgz), but the [source](https://invisible-island.net/datafiles/release/rcshist.tar.gz) link on the 'home' page link to [rcshist-1.04-20190106.tgz](https://invisible-island.net/archives/rcshist/rcshist-1.04-20190106.tgz). – Jonathan Leffler Jan 09 '23 at 23:00

2 Answers2

2

No, there is no built-in functionality. As an alternative, here are some workarounds:

Paul Sweatte
  • 24,148
  • 7
  • 127
  • 265
2

CVS and RCS use the same file format.

Install CVS, create an empty CVS repository, manually copy the RCS *,v file(s) into the CVS repository, and run cvs annotate.

See also this question: How to install CVS in Windows 7.

Community
  • 1
  • 1
Keith Thompson
  • 254,901
  • 44
  • 429
  • 631
  • Thanks; unfortunately 'MKS Source Integrity' does not use the standard 'RCS' file format. – Sam Jan 06 '14 at 13:43
  • 1
    @Sam: Hmm? You said the files were "controlled in RCS", and you used the RCS tag on the question. – Keith Thompson Jan 06 '14 at 15:14
  • Sorry. I originally thought 'MKS Source Integrity' was an implementation of RCS on Windows. It turns out to be a proprietary CMS, with not much in common with RCS. – Sam Jan 07 '14 at 15:34
  • Your original question (about a blame/annotate command for RCS) was potentially useful to others, and it got a couple of useful answers. I suggest you revert your question, removing references to MKS, and post your MKS question separately. Tagging the new question "mks-integrity" is likely to get some good answers. (I won't be able to answer it myself.) – Keith Thompson Jan 07 '14 at 15:41
  • Did as @Keith suggested - new question here: http://stackoverflow.com/questions/20975996/is-there-a-blame-annotate-for-mks-source-integrity – Sam Jan 07 '14 at 15:53