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

2

14

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.

Exanimate answered 2/4, 2009 at 16:49 Comment(0)
A
9

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.

Ablution answered 2/4, 2009 at 18:14 Comment(2)
FYI I tried your link with my Firefox browser... it didn't work until I replaced the "%2B" with "+" directly in the address bar.Exanimate
@Jin Kim, Thanks - I fixed the link. It was some problem with the stackoverflow markdown.Ablution
S
0

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.

Song answered 16/4, 2014 at 9:41 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.