monotone-devel
[Top][All Lists]
Advanced

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

Re: [Monotone-devel] Can monotone import RCS files


From: Glen Ditchfield
Subject: Re: [Monotone-devel] Can monotone import RCS files
Date: Sun, 06 Nov 2005 12:37:16 -0600
User-agent: KMail/1.8.3

On Sun, Oct 30, 2005 at 07:40:34PM -0600, Glen Ditchfield wrote:
> Can monotone import RCS (not CVS) files?
> I have a working directory containing a subdirectory "cv", which contains an 
> RCS file "cv.tex,v".

On Sunday 30 October 2005 20:02, Nathaniel Smith wrote: 
> Try running 'monotone cvs_import cv' (note, on the directory, not the
> file) and see if that works?

It does something, but I don't know what, exactly.  Here's what happened when 
tried cvs_import on a blank database and a fresh working directory.

[~]$ pushd
/srv/monotone ~
[monotone]$ rm a.db
[monotone]$ monotone db init --db=a.db
[monotone]$ monotone --db=a.db read <gjditchfield.pubkey
monotone: read 1 packet
[monotone]$ monotone --db=a.db read <gjditchfield.privkey
monotone: read 1 packet
[monotone]$ pushd
~ /srv/monotone
[~]$ rm -rf MT
[~]$ monotone --db=/srv/monotone/a.db --branch=ca.mb.ditchfield.home.gjditchf 
setup ~
[~]$ ls cv
abstract  cv.bib    cvletter.tex  cv.tex,v  Makefile
cv11.sty  cv.bib,v  cv.sty        letters/
[~]$ monotone cvs_import --branch=ca.mb.ditchfield.home.gjditchf cv
enter passphrase for key ID address@hidden:
monotone: branches | versions
monotone:        0 |        15 |         1 |       15
monotone: verifying new revisions (this may take a while)
monotone: branches | manifests | revisions | versions
monotone:        0 |        15 |        15 |       15

(That looks sensible.  cv.tex,v contains 13 revisions, and cv.bib,v contains 
two.  But where are they?  )

[~]$ monotone status cv/cv.tex
monotone: misuse: unknown path 'cv/cv.tex'
[~]$ monotone commit
monotone: misuse: no changes to commit
[~]$ monotone log
[~]$ monotone list known

(I was expecting cvs_import to act like adding the revisions, and possibly 
automatically committing.)

[~]$ monotone add t.txt
monotone: adding t.txt to working copy add set
[~]$ monotone log
[~]$ monotone list known
t.txt
[~]$ monotone status t.txt

new_manifest [62089009efadf23086fcef014d9a231c7f9d9e68]

old_revision []
old_manifest []

add_file "t.txt"

patch "t.txt"
 from []
   to [55ca6286e3e4f4fba5d0448333fa99fc5a404a73]




reply via email to

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