[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Getting a file that was removed in repository back?
From: |
Albin Takami |
Subject: |
RE: Getting a file that was removed in repository back? |
Date: |
Thu, 29 Aug 2002 16:08:35 -0700 |
-----Original Message-----
From: address@hidden [mailto:address@hidden
Sent: Wednesday, August 28, 2002 7:37 PM
To: Albin Takami
Cc: 'Larry Jones'; address@hidden; address@hidden
Subject: RE: Getting a file that was removed in repository back?
:end of: <http://www.cvshome.org/docs/manual/cvs_5.html#SEC62>.
:
:I've been reading that part and I've been trying some of the examples,
:however it couldn't get the files in the Attic restored.
:The link you gave me to chapter 5 deals with branching and merging and I
:couldn't see anything that brings back files in the Attic.
:What can I do to check that my repository is not corrupted, and restoring
of
:repository should be possible?
Here i'm pasting that part of the manual:
Specifying two `-j' options can also undo file removals or additions. For
example, suppose you have a file named `file1' which existed as revision
1.1, and you then removed it (thus adding a dead revision 1.2). Now suppose
you want to add it again, with the same contents it had previously. Here is
how to do it:
$ cvs update -j 1.2 -j 1.1 file1
U file1
$ cvs commit -m test
Checking in file1;
/tmp/cvs-sanity/cvsroot/first-dir/file1,v <-- file1
new revision: 1.3; previous revision: 1.2
done
$
--
sherzod
Thanks for spelling it out Mr. Sherzod
It worked out fine. The only thing is that I couldn't restore all the file
at once or the whole directory. I had to restore them file by file. Anyhow,
that is not much of an issue unless you have hundreds of different files to
restore.
Albin