logo       

Re: update bug (was: adding on branch): msg#00019

Subject: Re: update bug (was: adding on branch)
"Pierre Asselin" <pa@xxxxxxxxxxxxxxx> wrote in message 
news:i16ebb.618.ln@xxxxxxxxxxxxxxxxxxxxxxxxx
> I changed the title to attract new readers.  Paul, your problem has
> nothing to do with the Attic or dead trunk revisions.

There are two different problems.

> It also happens
> if a file added on the trunk and a file with the same name is
> imported later.  To reproduce,

Ok.

>     import a test tree
>     check out the trunk
>     add a file "gatcha" on the trunk, commit, delete the sandbox
>     add a file "gatcha" to the initial import tree, do a second import

"gotcha" is SOP I believe.  :-)

>     cvs checkout -j first_import -j second_import
>
> You get a warning about "gatcha", but once the warning flies off the
> screen

Yep, flying off the screen is exactly the problem.  My bodgy
workaround is to redirect to a file and grep for "has been
added".  Bodgy bodgy bodgy.  I'll be getting a job working for
Microsoft if I keep this up.

> there is no indication of a conflict.  The merge logic seems to be:
>
>     1) file has the new import tag but not the old, so must add
>     2) file is already present, can't add;  warn
>     3) oh, well.

:-)

> I would much prefer if update (or checkout -j -j), finding the file
> already in the sandbox, attempted the three-way merge between sandbox
> and import, with /dev/null as the common ancestor.  That seems to often

Exactly what is required.

> yield a file with the two versions bracketed by conflict markers, even
> if the two versions are almost identical.  Not very good, but at least
> it's fail-safe.

Exactly correct.  Not very nice, I have to go and cut the file in
two and do my own diff, but I can live with that.  The failsafe
is all that is required.

> Currently, the conflict information is lost.

Yep.

> Yow.  I guess I'll have to do my merges like I do my imports and
> capture the screen output
>
>     cvs update -j blah -j blahblah 2> ../err | tee ../out

Yep, you sure do.

You've just completely described problem 2 out of my
ad-hoc list...

1. Import being handled differently when branch exists.
2. Merge not creating a conflict when branch exists.
3. diff and rdiff -s not coping with different branches having
different version numbers while still being identical.
(hopefully 50% fixed on cvs1-11-x-branch).
4. diff between two labels, first missing, second dead produces an
error instead of silence (hopefully fixed on cvs1-11-x-branch)
5. diff and rdiff are not mirrors (feature request, not bug).


Problem 1, although obstensibly minor, can be broken down
in two ways:

A. Imports are prematurely interfering with the head, they should all
go into the Attic until explicitly joined onto the head.

B. The automatic-import-to-head feature does not work when some
tinpot has created a tinpot branch.

BFN.  Paul.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
web.pylons.gene...    hurd.l4/2002-10...    kernel.commits....    user-groups.lin...    yellowdog.gener...    java.drools.use...    security.openva...    package-managem...    linux.debian.us...    qnx.openqnx.dev...    genealogy.gramp...    file-systems.if...    voip.wengophone...    tex.context/200...    ietf.smime/2003...    audio.csound.de...    culture.region....    xfree86.devel/2...    mobile.kannel.u...    distributed.con...    education.engli...    org.user-groups...    bug-tracking.gn...    recreation.bicy...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe