Welcome Guest ( Log In | Register )

Help | Search | Members | Calendar

 
CVS & read-only files, файлы превращаются в read-only
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
Hrach_Techie
  Posted: Dec 3 2008, 12:28

Word Thrower

Group: Member
Member No.: 1044

Joined: November 9, 2004

CVS устанавливет read-only права доступа к файлам

Кто-нибудь из опытных пользователей CVS в курсе почему после фиксации изменений в исходных файлах в репозитории командой cvs update, файлы превращаются в read-only? То же самое происходит после комманды cvs add ? Использую клиент-серверный Concurrent Versions System (CVS) 1.11.5

Права доступа к файлам на read-only в основном меняются у *.cpp, *.tcl и *.java файлов. Сначала думалось может соответствующие опции в IDE не отключены, но посмотрев увидел, что read-only checkin везде отключен. Команд cvs watch on / cvs watch off не использую. В настройках CVS смотрел, ничего подозрительного нет.

Не пойму в чем дело? На CVS форумах дельных советов не нашел. Думал может кто тут знает в чем дело?

--------------------
Insomnia
 
    Top
stealth
Posted: Dec 3 2008, 12:32

Eye of the Vision

Group: Wheel
Member No.: 1

Joined: February 20, 2003

From the CVS manual.
QUOTE

-r

  Make  new  working files read-only.  Same effect as if the $CVSREAD environment variable is set (see node БEnvironment variables' in the CVS man-
  ual).  The default is to make working files writable, unless watches are on (see node БWatches' in the CVS manual).


Make sure, CVSREAD env var not set.

--------------------
إخرس والجلوس لكم غبي يمارس الجنس
 
      Top
Hrach_Techie
Posted: Dec 3 2008, 14:46

Word Thrower

Group: Member
Member No.: 1044

Joined: November 9, 2004

QUOTE (In the immortal words of stealth, since Dec 3 2008, 12:32)
From the CVS manual.
QUOTE

-r

   Make  new  working files read-only.  Same effect as if the $CVSREAD environment variable is set (see node БEnvironment variables' in the CVS man-
   ual).  The default is to make working files writable, unless watches are on (see node БWatches' in the CVS manual).


Make sure, CVSREAD env var not set.

stealth,

Only *.cpp, *.tcl и *.java files get the read-only attribute not the entire files in the working directory ... feel the difference? smile.gif

--------------------
Insomnia
 
    Top
stealth
Posted: Dec 3 2008, 15:11

Eye of the Vision

Group: Wheel
Member No.: 1

Joined: February 20, 2003

I think the difference is only *.cpp, *.tcl, and *.java files were modified after the CVSREAD var was initialized, thus the ro attr affected only the modified files in the tree.

--------------------
إخرس والجلوس لكم غبي يمارس الجنس
 
      Top
Hrach_Techie
Posted: Dec 3 2008, 15:36

Word Thrower

Group: Member
Member No.: 1044

Joined: November 9, 2004

QUOTE (In the immortal words of stealth, since Dec 3 2008, 15:11)
I think the difference is only *.cpp, *.tcl, and *.java files were modified after the CVSREAD var was initialized, thus the ro attr affected only the modified files in the tree.

what do you mean by CVSREAD var was initialized?

--------------------
Insomnia
 
    Top
nep
Posted: Dec 3 2008, 15:46

Wise Dreamer

Group: Elite Member
Member No.: 1435

Joined: September 5, 2005

I dont know which client you use, but I recommend WinCVS if your os is win:)
 
     Top
stealth
Posted: Dec 3 2008, 16:08

Eye of the Vision

Group: Wheel
Member No.: 1

Joined: February 20, 2003

QUOTE (In the immortal words of Hrach_Techie, since Dec 3 2008, 16:36)
what do you mean by CVSREAD var was initialized?

It's an environmental variable, if initialized (e.g. export CVSREAD=1) repository will be checked out/updated as readonly

--------------------
إخرس والجلوس لكم غبي يمارس الجنس
 
      Top
Hrach_Techie
Posted: Dec 3 2008, 16:17

Word Thrower

Group: Member
Member No.: 1044

Joined: November 9, 2004

CVSREAD is not used on the client side .. nor on the server side

--------------------
Insomnia
 
    Top
Hrach_Techie
Posted: Dec 3 2008, 16:30

Word Thrower

Group: Member
Member No.: 1044

Joined: November 9, 2004

QUOTE (In the immortal words of nep, since Dec 3 2008, 15:46)
I dont know which client you use, but I recommend WinCVS if your os is win:)

And I recommend that you read the initial message before replying
it says that I use the Concurrent Versions System (CVS) 1.11.5
wink.gif)))) my os is unix apparently for that reason I wrote the message in this section smile.gif

So what's so fascinating about WinCVS that you wanted to talk about? )))




--------------------
Insomnia
 
    Top
stealth
Posted: Dec 3 2008, 16:50

Eye of the Vision

Group: Wheel
Member No.: 1

Joined: February 20, 2003

Perhaps this is the last thing I can think about.. what's your umask value?
After, I suggest to try smth, at least to identify, where the problem comes from (server or client).
I can try to check it out and see the results on my side.
Just PM me.

--------------------
إخرس والجلوس لكم غبي يمارس الجنس
 
      Top
Hrach_Techie
Posted: Dec 3 2008, 19:00

Word Thrower

Group: Member
Member No.: 1044

Joined: November 9, 2004

thanks stealth! i sent you the details

--------------------
Insomnia
 
    Top
nep
Posted: Dec 4 2008, 16:03

Wise Dreamer

Group: Elite Member
Member No.: 1435

Joined: September 5, 2005

QUOTE (In the immortal words of Hrach_Techie, since Dec 3 2008, 16:30)
And I recommend that you read the initial message before replying
it says that I use the Concurrent Versions System (CVS) 1.11.5
wink.gif)))) my os is unix apparently for that reason I wrote the message in this section smile.gif

So what's so fascinating about WinCVS that you wanted to talk about? )))

ops sorry didnt notice the section of the topic smile.gif but anyway u can ran it using wine, it has nice intuitive GUI
 
     Top
Master of Puppets
Posted: Dec 4 2008, 16:20

Eye of the Vision

Group: Moderator
Member No.: 2067

Joined: August 29, 2006

QUOTE (In the immortal words of nep, since Dec 4 2008, 16:03)
QUOTE (In the immortal words of Hrach_Techie, since Dec 3 2008, 16:30...)
And I recommend that you read the initial message before replying
it says that I use the Concurrent Versions System (CVS) 1.11.5
wink.gif)))) my os is unix apparently for that reason I wrote the message in this section smile.gif

So what's so fascinating about WinCVS that you wanted to talk about? )))

ops sorry didnt notice the section of the topic smile.gif but anyway u can ran it using wine, it has nice intuitive GUI

Heh... it took me longer to do a checkout with WinCVS than with the standard CVS command line interface and it was because of the "intuitive" WinCVS UI smile.gif

--------------------
Master of Puppets, I'm pulling your strings, twisting your mind and smashing your dreams!
⠠⠵
 
       Top
Dream_InspectoR
Posted: Dec 4 2008, 16:25

Eye of the Vision

Group: Moderator
Member No.: 614

Joined: February 10, 2004

I think it is because of tons of macros working under WinCVS GUI in our company smile.gif))))

--------------------
Kill'em!!! Kill'em ALL!!!
 
        Top
Master of Puppets
Posted: Dec 4 2008, 16:49

Eye of the Vision

Group: Moderator
Member No.: 2067

Joined: August 29, 2006

QUOTE (In the immortal words of Dream_InspectoR, since Dec 4 2008, 16:25)
I think it is because of tons of macros working under WinCVS GUI in our company smile.gif))))

Well, maybe... Anyway, I think that typing "cvs checkout" in the console is way quicker than launching the gui client and opening the appropriate dialog window.

--------------------
Master of Puppets, I'm pulling your strings, twisting your mind and smashing your dreams!
⠠⠵
 
       Top
Hrach_Techie
Posted: Dec 5 2008, 10:22

Word Thrower

Group: Member
Member No.: 1044

Joined: November 9, 2004

QUOTE (In the immortal words of stealth, since Dec 3 2008, 16:50)
Perhaps this is the last thing I can think about.. what's your umask value?
After, I suggest to try smth, at least to identify, where the problem comes from (server or client).
I can try to check it out and see the results on my side.
Just PM me.

just wanted to share for others with the same err to know

umask has no impact here. I think the problem is that somebody or apparently some software is running cvs watch on and after that my sandbox starts getting read-only files during update/checkout commands. As a workaround, I now run cvs watch off on the affected modules but that's just a workaround not an actual solution.




--------------------
Insomnia
 
    Top
15 replies since Dec 3 2008, 12:28 Track this topic | Email this topic | Print this topic

<< Back to Unix programming

 




Arminco Global Telecommunications