Equivalent of git stash in CVS?
Asked Answered
G

1

5

I need to test some old version of our source code, however I have some local changes. So I would like to "stash" these changes, checkout the old version, do some tests, then go back to the current version, and restore my changes. Is it possible to do this kind of workflow in CVS? Basically, what I need is the equivalent of git stash/restore.

Gamely answered 27/11, 2012 at 3:27 Comment(1)
git-cvsimport? There's no stash functionality in CVS that I know of.Rallentando
A
8

CVS is primitive in comparison to modern source control systems. There is no direct equivilent to stash.

The closest you'll get is using cvs diff -u to create a unified diff of your changes, then revert the changes, do whatever you need to do, revert / update again, then apply the patch to get your changes back.

Alternatively, you could just create another checkout in another directory and work there independently.

Anabas answered 27/11, 2012 at 3:59 Comment(2)
Another checkout is probably the easiest way unless you have a rather large source tree. CVS is designed for all working trees to share one repo.Darrendarrey
Just for the record, in Intellij you can Shelve and unshelve changesEmbosser

© 2022 - 2024 — McMap. All rights reserved.