monotone-devel
[Top][All Lists]
Advanced

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

Re: [Monotone-devel] Monotone and RCS import


From: Chris Fox
Subject: Re: [Monotone-devel] Monotone and RCS import
Date: Wed, 17 Mar 2004 22:53:15 +0000
User-agent: Mutt/1.4.1i

Thanks for the reply

On Wed, Mar 17, 2004 at 09:10:55AM -0500, graydon hoare wrote:
> Chris Fox wrote:
> 
> >Unfortunately, I don't seem able to get monotone's RCS import to do
> >anything useful.  Can you tell me whether this feature is work in
> >progress, or am I missing something?
> 
> it is a work in progress -- there are some known bugs -- but we've had 
> significantly better results so far than you're reporting!
> 
> >% monotone --db=project.db db init
> >% monotone --db=project.db genkey address@hidden
> >% monotone --db=project.db --branch=rcstest rcs_import 
> >rcstest/RCS/silly.tex,v % monotone --db=project.db --branch=rcstest 
> >checkout rcstest/silly.tex
> >monotone: fetching heads of branch 'rcstest'
> >monotone: misuse: branch rcstest is empty
> 
> rcs_import is a somewhat weak function in a program like monotone which 
> deals primarily in "whole tree" states. namely: when you import an rcs 
> file, it just adds the file's various versions to the file storage 
> system. it doesn't create any manifests, nor associate them with 
> branches, nor store any changelog or ancestry information. if it did, 
> your manifest would only have one file in it, and you can't really 
> "alter" manifests once they're made: their SHA1 changes, breaking 
> identity :(
>
> >No MT directory is produced.  I get similar errors regardless of what
> >I try to check out.  Similar issues when I try cvs_import.
> 
> that is surprising. cvs_import ought to work if you set it on the 
> rcstest/ directory. can you run it with --verbose and send a log of what 
> happens?

Here is the log you request. I hope this helps to isolate the source
of my problem.

Best wishes,
     Chris

> -graydon
> 

----------------------------------------------------------------------

address@hidden Monotone]$ monotone --db=project.db db init
address@hidden Monotone]$ monotone --db=project.db genkey address@hidden
monotone: generating key-pair 'address@hidden'
enter passphrase for key ID address@hidden : 

monotone: storing key-pair 'address@hidden' in database
address@hidden Monotone]$ 
address@hidden Monotone]$ monotone --verbose --db=project.db --branch=project 
cvs_import rcstest/
monotone: skipping nonexistent rcfile '/home/foxcj/.monotonerc'
monotone: skipping nonexistent rcfile 'MT/monotonerc'
monotone: executing cvs_import command
monotone: lua isfunction() failed in get_fn
monotone: db.fetch("SELECT id from private_keys")
monotone: db.fetch("SELECT id FROM private_keys WHERE id = 'address@hidden'")
monotone: db.execute("BEGIN")
monotone: parsing RCS file RCS/silly.tex,v
monotone: parsed RCS file RCS/silly.tex,v OK
monotone: importing file 'RCS/silly.tex,v'
monotone: db.fetch("SELECT id FROM 'file_deltas' WHERE id = 
'cf9825e3d2f99d02a115c38690be5e61fcab2a04'")
monotone: db.fetch("SELECT id FROM 'files' WHERE id = 
'cf9825e3d2f99d02a115c38690be5e61fcab2a04'")
monotone: db.execute("INSERT INTO 'files' 
VALUES('cf9825e3d2f99d02a115c38690be5e61fcab2a04', ...")
monotone: skipping non-RCS file silly.tex
monotone: skipping non-RCS file silly.tex~
monotone: db.execute("COMMIT")
monotone: phase 1 (version import) complete
monotone: db.execute("BEGIN")
monotone: db.fetch("SELECT id FROM 'manifest_deltas' WHERE id = 
'da39a3ee5e6b4b0d3255bfef95601890afd80709'")
monotone: db.fetch("SELECT id FROM 'manifests' WHERE id = 
'da39a3ee5e6b4b0d3255bfef95601890afd80709'")
monotone: db.execute("INSERT INTO 'manifests' 
VALUES('da39a3ee5e6b4b0d3255bfef95601890afd807 ...")
monotone: phase 2 (ancestry reconstruction) complete
monotone: db.execute("COMMIT")
address@hidden Monotone]$ monotone --verbose --db=project.db --branch=rcstest 
checkout rcstest
monotone: skipping nonexistent rcfile '/home/foxcj/.monotonerc'
monotone: skipping nonexistent rcfile 'MT/monotonerc'
monotone: executing checkout command
monotone: fetching heads of branch 'rcstest'
monotone: db.fetch("SELECT id, name, value, keypair, signature FROM 
manifest_certs WHERE (name = 'ancestor' OR name = 'branch') AND id IN (SELECT 
id FROM manifest_certs WHERE name = 'branch' AND value = 'cmNzdGVzdA==
')")
monotone: began with 0 candidate heads
monotone: reduced to 0 heads
monotone: commands.cc:1578: usage constraint 'N(heads.size() > 0)' violated
monotone: misuse: branch rcstest is empty

**** error return code 1
**********  errors detected; see standard output for details  ***********
address@hidden Monotone]$ 
address@hidden Monotone]$ cat rcstest/RCS/silly.tex,v 
head    1.1;
access;
symbols;
locks; strict;
comment @% @;


1.1
date    2004.03.17.11.41.28;    author foxcj;   state Exp;
branches;
next    ;


desc
@@


1.1
log
@Initial revision
@
text
@silly test of RCS and monotone
@
address@hidden Monotone]$ 
address@hidden Monotone]$ ls MT
ls: MT: No such file or directory
address@hidden Monotone]$ 

----------------------------------------------------------------------
 
-- 
Dr Chris Fox  <address@hidden>             Tel: +44 (0)1206 87 2576
Reader in Computer Science                    Fax: +44 (0)870 054 7770  
University of Essex                           Web:  FoxEarth.org/chris
Colchester CO4 3SQ, United Kingdom            GnuPG: 488F6C2A/4FCBC9C6
                            




reply via email to

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