Jin Kim
Jin Kim

Reputation: 17732

How do I add execute permission to a file in CVS after it's already been checked in?

We use CVS on Linux for software development.

I noticed that one of the scripts I'm working on is missing the execute bit set in the CVS repository.

Is there any way to add the execute bit back to the file?

I think it involves modifying the repository directly, but I don't know how to do this.

Upvotes: 14

Views: 9093

Answers (2)

zhrist
zhrist

Reputation: 1558

Cvs command option watch is also preventing file permissions to be restored. If watched, when file is checked out it will be read-only. From cvs man pages:

$ cvs watch --help_options

Usage: cvs watch {on|off|add|remove} [-lR] [-a <action>]... [<path>]...

on/off: turn on/off read-only checkouts of files

So, use cvs watch off filename to remove checkout from repository making it read only every time.

Upvotes: 0

Alex B
Alex B

Reputation: 24936

Modify the permissions of the related ,v file in the repository. Per this article, the file is checked out with the same permissions as the ,v file in CVSROOT.

Upvotes: 9

Related Questions