info-cvs
[Top][All Lists]
Advanced

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

Re: Conflict committed


From: Mark D. Baushke
Subject: Re: Conflict committed
Date: Wed, 29 Oct 2003 09:07:28 -0800

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David Wood <address@hidden> writes:

> I just found that one of the developers here has managed to commit a file 
> with a conflict in it.
> 
> I had been under the impression, based on documentation and past 
> experience, that it was impossible to commit a file with conflict markers 
> inside it. However, I just witnessed this.
> 
> Are my assumptions about this mistaken? What circumstances allow 
> unresolved conflicts to be committed back to the repository?

The timestamp of the file being changed will let the file with conflicts
be committed with just a warning.

Some folks consider it useful to check for conflict markers in their
commitinfo scripts and refuse the commit.

It is not up to cvs to determine what data patterns should or should not
be allowed to be committed into a file.

        -- Mark

Example:

% cd /tmp
% mkdir testit
% cd testit
% cvs -d /tmp/testit/cvs-testrepos init
% cvs -d /tmp/testit/cvs-testrepos co CVSROOT
% cd CVSROOT/
% (echo aaa; echo bbb; echo ccc) > file1
% cvs add file1
% cvs ci -mnew file1
% echo ddd >> file1
% cvs ci -madd file1
% echo eee >> file1
% cvs up -j1.2 -j1.1 file1
% cat file1
aaa
bbb
ccc
<<<<<<< file1
ddd
eee
=======
>>>>>>> 1.1
% touch file1
% cvs ci -mconflict file1
cvs commit: warning: file `file1' seems to still contain conflict indicators
Checking in file1;
/tmp/cvs-testrepos/CVSROOT/file1,v  <--  file1
new revision: 1.3; previous revision: 1.2
done
cvs commit: Rebuilding administrative file database
% 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQE/n/PQ3x41pRYZE/gRAqT1AKDVi92UQJZorCK47WNQcrSBtFPWOACg3T1T
b6nolaHXENd1+/R0jqRIxZY=
=k4nC
-----END PGP SIGNATURE-----




reply via email to

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