List Info

Thread: Where is Attic?




Where is Attic?
user name
2007-08-08 02:49:42
Hi, folks!

We archive history of a few hundred Cisco router config
files
in CVS + CVSweb system.
Operators can follow changes of configuration easily.
Sometimes they need old configs too that belongs to late
routers.
These deleted files are in Attic/ directory now.

We want to migrate the configuration archive to
Subversion+ViewVC.
Unfortunately I cannot figure out how to preserve Attic
files
with cvs2svn (ver 2.0.0-rc1).

Any hints will be appreciated.

Gabor

------------------------------------------------------------
---------
To unsubscribe, e-mail: users-unsubscribecvs2svn.tigris.org
For additional commands, e-mail: users-helpcvs2svn.tigris.org


Re: Where is Attic?
user name
2007-08-08 03:40:09
> Unfortunately I cannot figure out how to preserve Attic
files
> with cvs2svn (ver 2.0.0-rc1).

Meanwhile I understood how svn works.
Deleted files are there but they are hidden in HEAD
revision.
Sorry for the noise.

(I'm afraid we keep CVS. With ViewVC operators has no way to
find
out which version switch to if they search a deleted file.)

Gabor

------------------------------------------------------------
---------
To unsubscribe, e-mail: users-unsubscribecvs2svn.tigris.org
For additional commands, e-mail: users-helpcvs2svn.tigris.org


Re: Where is Attic?
user name
2007-08-08 03:42:04
On Wed, Aug 08, 2007 at 09:49:42AM +0200, Kiss Gabor
(Bitman) wrote:
> Unfortunately I cannot figure out how to preserve Attic
files
> with cvs2svn (ver 2.0.0-rc1).
> 
the attic is a pretty awkward concept of cvs, and strictly
speaking it
is completely superfluous, as the files have internal
deletion marks
anyway - you can simply move the files out of the attic and
everything
will still work as expected. so cvs2svn ignores the fact
that a file is
in the attic.
to access files that existed in previous revisions, you have
to access
the revisions they still existed in, obviously. a search by
date might
prove useful here. if the situation is needed frequently,
you might want
to maintain a file that lists deleted files and the
revisions they were
deleted at. you might automate this pretty nicely with a
post-commit
script or something.

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature,
please!
--
Chaos, panic, and disorder - my work here is done.

------------------------------------------------------------
---------
To unsubscribe, e-mail: users-unsubscribecvs2svn.tigris.org
For additional commands, e-mail: users-helpcvs2svn.tigris.org


Re: Where is Attic?
user name
2007-08-08 04:42:30
On Wed, 8 Aug 2007, Oswald Buddenhagen wrote:

> is completely superfluous, as the files have internal
deletion marks
> anyway - you can simply move the files out of the attic
and everything
> will still work as expected. so cvs2svn ignores the
fact that a file is
> in the attic.

I renamed all 'Attic' dirs to 'Deleted' then I rebuild the
SVN repository.
No change.
I suspect this is because the latest version of all
Attic/*,v files
are marked as 'state dead' instead of 'state Exp'
(Did I miss something?)

I cannot see any way at reasonable cost to preserve Attic
files.
All benefits of SVN over CVS are useless if I cannot
convert
repository within 10 minutes without a lot of manual
intervention.

Regards

Gabor

------------------------------------------------------------
---------
To unsubscribe, e-mail: users-unsubscribecvs2svn.tigris.org
For additional commands, e-mail: users-helpcvs2svn.tigris.org


Re: Where is Attic?
user name
2007-08-08 10:22:09
On Wed, Aug 08, 2007 at 11:42:30AM +0200, Kiss Gabor
(Bitman) wrote:
> On Wed, 8 Aug 2007, Oswald Buddenhagen wrote:
> > is completely superfluous, as the files have
internal deletion marks
> > anyway - you can simply move the files out of the
attic and everything
> > will still work as expected. so cvs2svn ignores
the fact that a file is
> > in the attic.
> 
> I renamed all 'Attic' dirs to 'Deleted' then I rebuild
the SVN repository.
>
"out of the attic" means "into the main
dir", not "into some random dir".

> No change.
>
sure there is a change - in the revisions the files exist
they are now
in subdirs named "Deleted".

> I suspect this is because the latest version of all
Attic/*,v files
> are marked as 'state dead' instead of 'state Exp'
> 
yes, these are the internal deletion marks.

> I cannot see any way at reasonable cost to preserve
Attic files.
> All benefits of SVN over CVS are useless if I cannot
convert
> repository within 10 minutes without a lot of manual
intervention.
> 
it's not a question of conversion, but of svn semantics.
you are actually using a side effect of a misfeature of cvs.
svn does
not have this side effect due to an overall cleaner
architecture. as i
already stated, you can have a list of "file
deaths" easily - either as
suggested before as changes happen, or - particularly for
the conversion
- by parsing "svn log -v". the latter is a
one-liner in perl or awk.

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature,
please!
--
Chaos, panic, and disorder - my work here is done.

------------------------------------------------------------
---------
To unsubscribe, e-mail: users-unsubscribecvs2svn.tigris.org
For additional commands, e-mail: users-helpcvs2svn.tigris.org


Re: Where is Attic?
user name
2007-08-09 04:34:22
Kiss Gabor (Bitman) wrote:
> On Wed, 8 Aug 2007, Oswald Buddenhagen wrote:
> 
>> is completely superfluous, as the files have
internal deletion marks
>> anyway - you can simply move the files out of the
attic and everything
>> will still work as expected. so cvs2svn ignores the
fact that a file is
>> in the attic.
> 
> I renamed all 'Attic' dirs to 'Deleted' then I rebuild
the SVN repository.
> No change.
> I suspect this is because the latest version of all
Attic/*,v files
> are marked as 'state dead' instead of 'state Exp'
> (Did I miss something?)
> 
> I cannot see any way at reasonable cost to preserve
Attic files.
> All benefits of SVN over CVS are useless if I cannot
convert
> repository within 10 minutes without a lot of manual
intervention.

If you don't stop and think about what you are doing, then
the
conversion won't be useful to you anyway.  You should read
the
Subversion book so that you understand how Subversion treats
deleted
files (and the fact that they are not gone).

The files in the attic *are* preserved by cvs2svn.  You're
just having
trouble finding them in the converted SVN repository.

Best practice (in CVS and in SVN) is to set a tag or branch
at all
"interesting" points in your history.  Instead of
searching for single
files in the history, you should look at the tag
corresponding to a
particular release of your software.  Such branches and tags
are also
preserved by cvs2svn.

But apparently you don't have these tags.  Still, you can
locate your
files by doing a date search (if you know a date when the
file was live
in the repository), or by using something like

    svn log -v URL/path/to/directory/containing/file | less

and grepping through the log for the name of the file you
are interested in.

Michael

------------------------------------------------------------
---------
To unsubscribe, e-mail: users-unsubscribecvs2svn.tigris.org
For additional commands, e-mail: users-helpcvs2svn.tigris.org


[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )