laurent
laurent

Reputation: 90736

Equivalent of git stash in CVS?

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.

Upvotes: 5

Views: 1464

Answers (1)

Charles
Charles

Reputation: 51411

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.

Upvotes: 8

Related Questions