dotSoftwaredotDevelopmentdotCustomersdotAbout us
PushOk logoblank
bullet Home
bullet My software
bullet Support
bullet My payments
bullet My info
bullet Subscriptions
bullet Voting
bullet Contact us
fast linksFast Links
news&eventsnews and events

2012-12-21 
Major update of SVNCOM version 1.7.2 are finaly released

2012-12-21 
Major update of SVN SCC plug-in - versions 1.7.2 are finaly released

Lightweight embedded Node.js database with MongoDB API.

Ticket

Search go
PushOk Logo blank
leftTicketright

watch and added files issues

( CVSSCC )
Type: Public Status:Closed Created: 30 Apr 04 04:00 Updated: 10 May 04 05:00
--> Igor Pushkov (admin)  at 10 May 04 05:00 writes

ok. hope now you have some ideas how to work with this for now. We
will look on possibility to apply "cvs watch" for module. I not think
it is reasonable to link it with "Checkout readonly option". May be
some option in "Advanced options for SCC get". I will notify you when
we will make this.
--> Andrea (user)  at 06 May 04 05:00 writes

Using the CVSREAD variable works.

However this is a global option, and forces all modules to use read-only
files, while some modules (for example those containing text files only) do
not require to enforce exclusive edit of files.
In fact I have some modules which contain frm/frx files, and these modules
need the files to be checked-out as read-only, to ensure that they are not
edited concurrently. On the other hand I also have some modules which
contain only text files; since different text file versions can be merged
without problems, they can be edited concurrently; but with the global
CVSREAD option, they are checked out as read-only even if it is not needed,
and this requires to edit/unedit them every time, which is boring, because
I could simply have them always writable, make my changes when needed and
commit them when finished, without having to edit/unedit them every time.
So I think I will manually enable watch on the relevant modules.
Unless you have decided not to do it for some design considerations, it
would be good if you slightly changed the SCC plugin behaviour to enable
watch on CVS when the "checkout files as read only" option is enabled
(besides using the global -r option you said).
--> Igor Pushkov (admin)  at 05 May 04 05:00 writes

So, I not see solution for your problem, but can explain CVS behavior
regarding readonly flag:
1. If file (module) marked with "cvs watch on" file will have readonly
flag always when it is not under "cvs edit" (after commit, initial
checkout or unedit)
2. CVS have specific _global_ option that allows to set readonly flag
not depending on "cvs watch". This global option is "-r (cvs -r)".
Option "checkout files readonly" just enable this option. WinCVS also
have this option under page "Global". But I not see same option in
Tortoise.
As solution you can:
1. Use WinCVS as standalone GUI
2. Setup "CVSREAD" environment variable (My computer\Right
CLick\Properties\Advanced\Enviroment variables). You need just add
this variable with any value.
I think better solution is to setup CVSREAD variable, but I not sure
is it will work for Tortoise or not.
Let me know if this will help
--> Andrea (user)  at 04 May 04 05:00 writes

No, it doesn't work.
Here is what I did.
I enabled the option in tortoise.
Then, always using tortoise, I issued an Edit command on a test form (which
had just been archived with the SCC plugin and was in read only state). I
changed a string in the form and the committed it, but it still remained
writable.

After this I enabled "watch" on the module, modified the form again, and
committed it using TortoiseCVS. This time it worked has expected, putting
the file in read-only state. But I had to manually enable watch on the
module.
--> Igor Pushkov (admin)  at 04 May 04 05:00 writes

Please try to switch on option in TortoiseCVS "Automatically unedit
after commit" on policy page of configuration page.
--> Andrea (user)  at 04 May 04 05:00 writes

>>CVS have some option, called "checkout files readonly". This option
>>can be configured in plug-in (on by default), and think in other
>>CVSGUI. You should switch it on, and after that you will always have
>>readonly flag on non edited files.

The problem is this option is already enabled (and has been since the
beginning, I have never disabled it). SCC CVS Proxy checks out files as
read-only, as expected, but when I check out a file using a different
client, e.g. TortoiseCVS, it is checked out as write enabled. If I manually
issue a "cvs watch on" command on the CVS module, then TortoiseCVS checks
out files as read-only. That's why my guess is that SCC CVS Proxy does not
enable watch on CVS.
--> Igor Pushkov (admin)  at 04 May 04 05:00 writes

) Problem 1 (readonly flag)
CVS have some option, called "checkout files readonly". This option
can be configured in plug-in (on by default), and think in other
CVSGUI. You should switch it on, and after that you will always have
readonly flag on non edited files.
) Problem 2 (frx file)
Binary files is some interesting issue with VB. VB do not know (not
store anywere) the fact that frm file should have corresponding frx
file. Because of that it cannot retrieve it, when it added at other
location. Only two possible solutions there:
a) Use other CVSGUI to update entire folder
b) Pull project again from CVS
However, I will mark your ticket as accepted and we will try to find
some fix for this problem.
) Problem 3
Thank you, we will fix this.
--> Andrea (user)  at 30 Apr 04 04:00 writes

I am using your plugin (v1.2.040426) with VB6 sp5, CVSNT 2.0.38 and
TortoiseCVS 1.6.10.
I am experiencing the problems described below. Please note that I am using
the italian version of Visual Studio, so some menu english titles could be
different from the translation I have used. However it should be easy to
understand which menu I am talking about.

Problem 1
=========
When I create a new project in VB and put into CVS using the SCC plugin,
files are saved (correctly) as read only. When, using the plugin, I extract
a file from CVS, it becomes modifiable, and when I archive it it gets
read-only again. However if I edit a file without using VB the behaviour is
different. For example, if I CVS->Edit a Class1.cls file with TortoiseCVS,
the modify it using an editor external to VB, and I commit the changes
using TortoiseCVS, the file remains modifiable (it does not become
read-only, as it would if I modified it from within VB using the SCC
plugin). After some tests, I think the problem is that your SCC plugin
doesn't issue a "cvs watch on" command against CVS when it creates a new
module. Can you confirm (and possibly fix) this?

Problem 2
=========
Say I create a new project, containing only a simple form with some
controls on it. I add it to CVS, using the SCC plugin. Then I close VB,
open a new instance and use the Tools-PushOK CVS Proxy-Create project from
PushOK CVS Proxy to checkout the previously created project (obviously in a
folder different from the previous one). Then I add an Image control on the
form, assign an image to its picture property and save the form. This
causes a frx file to be generated, and the SCC plugin adds it to CVS.
However if I close the project, re-open the original one (which still
doesn't now about the frx file), and choose to update all files in the
project (using Tools-PushOK CVS Proxy-Read latest version and selecting all
files in the project) the frm file is updated, but the frx file is not
retrieved. This results in an error when trying to load the form (which
does not find the related frx file). After I update the project folder
using TortoiseCVS, the frx is retrieved and the form can be loaded.
The same happens when I add a new class file to the project: it is added to
CVS, but it is not retrieved when I want to update all files in the
project. To get it, I must use the TortoiseCVS update command on the
project folder.
Is there any command in the plugin to get the newly added files?

Problem 3
=========
Well, this is not a real problem, however there's a typo when you create a
new module. Instead of "Module successfully created", "Modue successfully
created" appears.

In case it can help, I have attached screenshots of my configuration (I
know, the first one is in italian, however the screen is the one coming out
from the Tools-PushOK CSV Proxy-Options menu, and the settings are No, No,
Yes, Ask).
Thanks for your assistance.
scr1.gif  scr2.gif 
Rate this ticket:
Not useful at all
Partially useful
Useful
Very useful



You are 9541942 visitor since 20 Jan 2003.
1075 visitors today and 2 online right now.
blank left to top right blank

© Copyright by PushOk Software, 2003-2024, webmaster@pushok.com