bug-cvs
[Top][All Lists]
Advanced

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

[bug #29507] cvs update -j update timestamp of unchanged files


From: anonymous
Subject: [bug #29507] cvs update -j update timestamp of unchanged files
Date: Tue, 02 Nov 2010 14:13:23 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)

Follow-up Comment #2, bug #29507 (project cvs):

Hello,
I have the same case when I do an update on a file with 2 different tags.
If i do so:
$ cvs update -r01 file.cpp
P file.cpp
$ cvs update -r02 file.cpp
P file.cpp

file.cpp is "touched" even if it has the same checksum in the end.

Looking in the CVS client.c source code, function update_entries, I realised
that it applies rcs_change_text (around line 2050) even when size == 0 (size
of the patch from network).

For test purpose, I modified the following (line 2051):
        if (data->contents == UPDATE_ENTRIES_UPDATE)
        {
            rename_file (temp_filename, filename);
        }
        else if (data->contents == UPDATE_ENTRIES_PATCH)
        {
            patch_failed = 1;
        }
        else if (size > 0)
        {
and it seems to work better for me now. 

Are there any kind of desagrement this can cause ?

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?29507>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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