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/


_______________________________________________
Bug-cvs mailing list
Bug-cvs@nongnu.org
http://lists.nongnu.org/mailman/listinfo/bug-cvs

Reply via email to