info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strange "Permission denied" problem during merge


From: Reinstein, Shlomo
Subject: Strange "Permission denied" problem during merge
Date: Mon, 21 May 2001 17:29:34 +0300

Hi,

I got a strange behavior of CVS (version 1.10.7, running on WinNT) when
trying to merge(update) a file. The situation is as follows: I checked-out a
project from the repository. One of the files in the project (let's call it
x.cpp) was checked-out with version 1.5. I modified the file locally, and
while I did that other people committed new versions of this file into the
repository, and the current "latest" version of this file in the repository
is 1.7. I typed "cvs update" in the working directory of this file, and
expected it to merge the differences between 1.5 and 1.7 into my version of
the file. However, I got the following output from this "cvs update"
command:

        cvs update: could not open output file: Permission denied
        cvs update: subsidiary diff failed

I checked that the necessary environment variables (e.g., HOMEDRIVE,
HOMEPATH, TEMP, TMP) are defined correctly. I also tried a few CVS options
(such as "cvs -l update" to avoid logging, or even "cvs -n update" so it
doesn't modify the file in the working directory!), but it kept displaying
the same error, even with "-n".

I tried to move my changed file aside and type "cvs update", and this works
fine. But for some reason, merging into my (changed) version of the file
always displays this error. If it helps, I also ran "cvs -t update" to see a
trace, and the output is below (I just changed the directory names and the
filenames because I'm not sure I'm allowed to send this information, it
might be considered confidential).

Do you have any idea what the problem can be? I found out that moving the
whole working directory to another drive solved the problem - in the other
drive, "cvs update" merged the file correctly and did not display this
error. The file is not read-only or anything like it.

Thanks a lot,
Shlomo

===========================

Output of "cvs -t update":

cvs update: notice: main loop with CVSROOT=:local:z:\some_path
cvs update: Updating .
-> checkout (z:\some_path/some_project/x.cpp,v, 1.5, , (function))
-> unlink(.#x.cpp.1.5)
-> copy(x.cpp,.#x.cpp.1.5)
-> chmod(x.cpp,100666)
RCS file: z:\some_path/some_project/x.cpp,v
retrieving revision 1.5
-> checkout (z:\some_path/some_project/x.cpp,v, 1.5, , E:\user_tmp\71
)
retrieving revision 1.7
-> checkout (z:\some_path/some_project/x.cpp,v, 1.7, , E:\user_tmp\72
)
Merging differences between 1.5 and 1.7 into x.cpp
cvs update: could not open output file: Permission denied
cvs update: subsidiary diff failed




reply via email to

[Prev in Thread] Current Thread [Next in Thread]