This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: commitinfo script to check policy, issue warnings (and/or abort commit)
- To: brane at xbc dot nu, gcc at gcc dot gnu dot org
- Subject: Re: commitinfo script to check policy, issue warnings (and/or abort commit)
- From: Marc Espie <espie at quatramaran dot ens dot fr>
- Date: Thu, 17 May 2001 15:06:56 +0200
- Organization: Ecole Normale Superieure (quatramaran)
- References: <200105162031.WAA17964@quatramaran.ens.fr>
In article <3B02FB5E.4040705@xbc.nu> you write:
>Marc Espie wrote:
>
>>* cvs can't import to anything but HEAD.
>>
>>* cvs can't import to anything but HEAD.
>>
>>* cvs can't import to anything but HEAD.
>>
>>* cvs can't import to anything but HEAD.
>>
>Yes, it can. Use `cvs import -b':
>
>$ cvs --help import
>Usage: cvs import [-d] [-k subst] [-I ign] [-m msg] [-b branch]
> [-W spec] repository vendor-tag release-tags...
> -d Use the file's modification time as the time of import.
> -k sub Set default RCS keyword substitution mode.
> -I ign More files to ignore (! to reset).
> -b bra Vendor branch id.
> -m msg Log message.
> -W spec Wrappers specification line.
Did you actually TRY using it ?
I just rechecked my facts, by putting two files under cvs, and having branches
at the point I wanted.
cvs import -b does not deal with symbolic tags. It wants numeric stuff.
Assume I create a branch using cvs -b tag, as I usually do.
I end up with this:
cvs status: Examining .
===================================================================
File: a Status: Up-to-date
Working revision: 1.3 Thu May 17 12:57:22 2001
Repository revision: 1.3 /home/espie/.cvsroot/voyons/a,v
Sticky Tag: REL2 (branch: 1.3.2)
Sticky Date: (none)
Sticky Options: (none)
===================================================================
File: b Status: Up-to-date
Working revision: 1.1 Thu May 17 12:59:01 2001
Repository revision: 1.1 /home/espie/.cvsroot/voyons/b,v
Sticky Tag: REL2 (branch: 1.1.2)
Sticky Date: (none)
Sticky Options: (none)
Here's the complete list of rev for both files:
RCS file: /home/espie/.cvsroot/voyons/a,v
Working file: a
head: 1.3
branch:
locks: strict
access list:
symbolic names:
REL2: 1.3.0.2
EXP1: 1.2.0.2
espie2: 1.1.1.1
espie: 1.1.1
=============================================================================
RCS file: /home/espie/.cvsroot/voyons/b,v
Working file: b
head: 1.1
branch:
locks: strict
access list:
symbolic names:
REL2: 1.1.0.2
Now, tell me how to achieve cvs import -b REL2 ?
If you can do it, I'm interested. As far as I've tried, I can't do it.