[Top][All Lists]

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

Re: Merge issues.

From: Mark D. Baushke
Subject: Re: Merge issues.
Date: Mon, 22 Nov 2004 22:19:00 -0800

Hash: SHA1

Tawfik, Sameh E <address@hidden> writes:

> About a month ago I tagged the main line with
> "Release_2_2_0 " tag, and then from that tag I

Note: spaces are not really included in the tag name...

> made a new branch "Release_2_2_0_Branch".
> Now, I'm trying to merge from the branch to the
> main line, 


> but it seems either I'm using the wrong syntax
> to the update command or there is a bug in CVS?

You do not mention which version of cvs you are using and 
mind-reading on this as most other places, is not easy.

> I'm using this command:
> cvs update -kk -j Release_2_2_0  -j Release_2_2_0_Branch build.xml

Presuming you are in a checked out copy of the
main trunk, this is the correct syntax to use.

> U build.xml
> RCS file: /home/cvsroot/EuroSource/build.xml,v
> retrieving revision 1.7
> retrieving revision
> Merging differences between 1.7 and into build.xml
> rcsmerge: warning: conflicts during merge

So, you have committed two patches in build.xml on
the Release_2_2_0_Branch and from your later
comment one patch on the main trunk.

> My questions are:
> Q1. Are there any thing wrong with the above merge command? 


> Or is there is any other command I should be
> using instead?

Not really. I suppose you could do something like:

    cvs diff -u -rRelease_2_2_0 -rRelease_2_2_0_Branch build.xml > pch
    patch < pch

but that will generate .rej files for the
conflicts rather than nice conflict markers

> Q2. The latest version in the main line is 1.8, so why it's not
> reporting merging between 1.7 and instead of 1.8 and

It did the merge and only complains about the
overlap where it does not know how to change the
file for you, so you will need to manually resolve the
differences between the conflict markers.

> Q3. I recently modified "build.xml" file in the
> main line, and I was expecting CVS to report
> conflicts about all the lines that I changed,
> but instead after the above merge, CVS showed
> only one line of conflict, and did not show
> conflicts in the other modified lines? 

It was able to determine how to merge the other
lines without any problems.

> Why CVS did not report conflicts about all the
> modified lines between the branch line and the
> main line in build.xml file!

It should not need to do so.

        -- Mark
Version: GnuPG v1.2.3 (FreeBSD)


reply via email to

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