cvs-cvs
[Top][All Lists]
Advanced

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

[Cvs-cvs] Changes to ccvs/src/commit.c [cvs1-11-x-branch]


From: Derek Robert Price
Subject: [Cvs-cvs] Changes to ccvs/src/commit.c [cvs1-11-x-branch]
Date: Thu, 22 Sep 2005 14:13:31 -0400

Index: ccvs/src/commit.c
diff -u ccvs/src/commit.c:1.187.4.32 ccvs/src/commit.c:1.187.4.33
--- ccvs/src/commit.c:1.187.4.32        Fri Sep  2 19:41:05 2005
+++ ccvs/src/commit.c   Thu Sep 22 18:13:26 2005
@@ -869,11 +869,11 @@
        case T_CHECKOUT:
        case T_PATCH:
        case T_NEEDS_MERGE:
-       case T_CONFLICT:
        case T_REMOVE_ENTRY:
            error (0, 0, "Up-to-date check failed for `%s'", finfo->fullname);
            freevers_ts (&vers);
            return 1;
+       case T_CONFLICT:
        case T_MODIFIED:
        case T_ADDED:
        case T_REMOVED:
@@ -911,40 +911,30 @@
                    return 1;
                }
            }
-           if (status == T_MODIFIED && !force_ci && vers->ts_conflict)
+           if (status == T_CONFLICT && !force_ci)
            {
-               /*
-                * We found a "conflict" marker.
-                *
-                * If the timestamp on the file is the same as the
-                * timestamp stored in the Entries file, we block the commit.
-                */
-               if ( file_has_conflict ( finfo, vers->ts_conflict ) )
-               {
-                   error (0, 0,
-                         "file `%s' had a conflict and has not been modified",
-                          finfo->fullname);
-                   freevers_ts (&vers);
-                   return 1;
-               }
-
-               if (file_has_markers (finfo))
-               {
-                   /* Make this a warning, not an error, because we have
-                      no way of knowing whether the "conflict indicators"
-                      are really from a conflict or whether they are part
-                      of the document itself (cvs.texinfo and sanity.sh in
-                      CVS itself, for example, tend to want to have strings
-                      like ">>>>>>>" at the start of a line).  Making people
-                      kludge this the way they need to kludge keyword
-                      expansion seems undesirable.  And it is worse than
-                      keyword expansion, because there is no -ko
-                      analogue.  */
-                   error (0, 0,
-                          "\
+               error (0, 0,
+                     "file `%s' had a conflict and has not been modified",
+                      finfo->fullname);
+               freevers_ts (&vers);
+               return 1;
+           }
+           if (status == T_MODIFIED && !force_ci && file_has_markers (finfo))
+           {
+               /* Make this a warning, not an error, because we have
+                  no way of knowing whether the "conflict indicators"
+                  are really from a conflict or whether they are part
+                  of the document itself (cvs.texinfo and sanity.sh in
+                  CVS itself, for example, tend to want to have strings
+                  like ">>>>>>>" at the start of a line).  Making people
+                  kludge this the way they need to kludge keyword
+                  expansion seems undesirable.  And it is worse than
+                  keyword expansion, because there is no -ko
+                  analogue.  */
+               error (0, 0,
+                      "\
 warning: file `%s' seems to still contain conflict indicators",
-                          finfo->fullname);
-               }
+                      finfo->fullname);
            }
 
            if (status == T_REMOVED)




reply via email to

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