[Top][All Lists]

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

Re: adding on branch

From: Stefan Monnier
Subject: Re: adding on branch
Date: 27 May 2003 11:11:17 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

> Adding a file on a branch *MUST* (due to the nature of the RCS file format)
> add a head revision. Since the head revision is simply a placeholder, it is
> marked dead.

Exactly: it's an implementation detail that has unexpected consequences.
I.e. a bug.  People shouldn't have to know about it and it shouldn't affect
unrelated things like `import'.

Think of it this way:

1 - create a branch B
2 - import a new vendor version with a new file F (gets rev
3 - add a new file F on branch B

now the HEAD of the trunk for file F is (it's magical).
But if switch steps 2 and 3, you instead end up with a dead head
for file F on the trunk.

Why should the order of 2 and 3 make any difference to the user ?


PS: Note that I'm not saying it's a bug to mark the head as dead.
The behavior as a whole exhibits a bug, but whether it's fixed by
"not marking head as dead" or by "import notices that the head is dead
and resurrects it" or some other mean doesn't matter.

reply via email to

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