bug-cvs
[Top][All Lists]
Advanced

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

Re: Major change in conflict handling between 1.12.9 and 1.12.13?


From: Mark D. Baushke
Subject: Re: Major change in conflict handling between 1.12.9 and 1.12.13?
Date: Fri, 02 Jun 2006 02:20:33 -0700

Hi Stephanie,

The information you are producing for me is not very helpful. :-(

I have moved this discussion to the bug-cvs mailing list. For folks just
joining this problem, look on the address@hidden list archives.

Grasping at straws, the only change I see that might remotely have
caused a change in behavior between cvs 1.12.9 and 1.12.13 is this one:

2005-09-22  Derek Price  <address@hidden>

        * classify.c (Classify_File): Consolidate redundant conditionals.

Does the patch below fix your problem? (Sadly, this means you will need
to (re)build CVS. If you are not able to build from the cvs 1.12.13a
sources, this puts us in a bit of an impass as I have no windows boxes
of any kind in my world...) If you are able to reproduce the problem on
a Debian system, then things might be easier for you to track down.

        -- Mark

--- cvs-1.12.13/src/classify.c.orig     2005-09-22 20:37:42.000000000 -0700
+++ cvs-1.12.13/src/classify.c  2006-06-02 02:05:02.103376910 -0700
@@ -236,8 +236,19 @@ Classify_File (struct file_info *finfo, 
                           finfo->fullname);
                ret = T_REMOVE_ENTRY;
            }
-           else if (strcmp (vers->ts_user, vers->ts_rcs)
-                    && No_Difference (finfo, vers))
+           else if (strcmp (vers->ts_user, vers->ts_rcs) == 0)
+           {
+
+               /*
+                * The user file is still unmodified, so just remove it from
+                * the entry list
+                */
+               if (!really_quiet)
+                   error (0, 0, "`%s' is no longer in the repository",
+                          finfo->fullname);
+               ret = T_REMOVE_ENTRY;
+           }
+           else if (No_Difference (finfo, vers))
            {
                /* they are different -> conflict */
                if (!really_quiet)
@@ -249,13 +260,10 @@ Classify_File (struct file_info *finfo, 
            }
            else
            {
-
-               /*
-                * The user file is still unmodified, so just remove it from
-                * the entry list
-                */
+               /* they weren't really different */
                if (!really_quiet)
-                   error (0, 0, "`%s' is no longer in the repository",
+                   error (0, 0,
+                          "warning: `%s' is not (any longer) pertinent",
                           finfo->fullname);
                ret = T_REMOVE_ENTRY;
            }
@@ -284,9 +292,7 @@ Classify_File (struct file_info *finfo, 
                        error (0, 0, "warning: `%s' was lost", finfo->fullname);
                ret = T_CHECKOUT;
            }
-           else if (!strcmp (vers->ts_user,
-                             vers->ts_conflict
-                             ? vers->ts_conflict : vers->ts_rcs))
+           else if (strcmp (vers->ts_user, vers->ts_rcs) == 0)
            {
 
                /*
@@ -300,8 +306,6 @@ Classify_File (struct file_info *finfo, 
                if (vers->entdata->options &&
                    strcmp (vers->entdata->options, vers->options) != 0)
                    ret = T_CHECKOUT;
-               else if (vers->ts_conflict)
-                   ret = T_CONFLICT;
                else
                {
                    sticky_ck (finfo, aflag, vers);

 
 ------- original message -------
Date: Fri, 02 Jun 2006 10:44:55 +0200
From: Stephanie Seibt <address@hidden>
To: "Mark D. Baushke" <address@hidden>
Cc: address@hidden
Subject: Re: Major change in conflict handling between 1.12.9 and 1.12.13?

Hi Mark,

Mark D. Baushke schrieb:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> Stephanie Seibt <address@hidden> writes:
>
>> here is my test case:
>>
>> 1) cvs update -j last_join_tag -j BRANCHNAME >logfile 2>&1
>> 2) content of logfile:
>>    RCS file: /cvs-repository/path_to_file/file,v
>>    retrieving revision 1.2
>>    retrieving revision 1.2.10.1
>>    Merging differences between 1.2 and 1.2.10.1 into file
>>    rcsmerge: warning: conflicts during merge
> As I do not actually have your file,v available as a test case, this
> does not help very much.
>
file revision 1.2
snip:
      my @r = (q$Revision: 1.2 $ =~ /\d+/g);

file revision 1.2.10
snip:
      my @r = (q$Revision: 1.2.10.1 $ =~ /\d+/g);

file after join:
<<<<<<< file
      my @r = (q$Revision: 1.5 $ =~ /\d+/g);
=======
      my @r = (q$Revision: 1.2.10.1 $ =~ /\d+/g);
>>>>>>> 1.2.10.1


>> 3) content of CVS/Entries:
>>    /file/1.5/Result of merge+Fri Jun  2 08:02:40 2006//
>> 4) cvs -n update file shows nothing (is cvs-1.12.13 for Windows)
> And is the contents of the CVS/Entries file unchanged after this
> step #4 operation?
>

the content is unchanged

>> 5) cvs-1.11.17 -n update shows (also Windows client)
>>    C file
> What dose 'cvs-1.12.13 version' output? (i.e., what is the the server
> revision of CVS)? It would also be good to know the server hardware and
> operating system type and any special configurations that went into the
> server versio n of cvs.
> Are you able to give me any further details about the configuration
> of
> the cvs 1.12.13 you are using?
>

I thought I did it in my first mail

Environment: remote server cvs-1.12.9 (Debian-patch, should be equal
to cvs-1.12.13)
pserver access
client cvs-1.12.13 for Windows (downloaded from gnu.org)

output of cvs-1.12.13 version is
Client: Concurrent Versions System (CVS) 1.12.13 (client)
Server: Concurrent Versions System (CVS) 1.12.9 (client/server)

the server is Debian GNU/Linux 3.1

>> Hope this helps, Stephanie
> Sadly, not yet. Until an unless I can understand what is happening,
> I am
> not able to fix it.
>       -- Mark
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.3 (FreeBSD)
> iD8DBQFEf/UMCg7APGsDnFERAt6zAJ46fX+Jqrrpkz/iyeUHBCVp5LjCigCffM8q
> IqPCv3BFVDlTQD1tIXwxIhQ=
> =Tkhg
> -----END PGP SIGNATURE-----
>

Greetings, Stephanie




reply via email to

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