Discussion:
cvs deleted by mistake
Yasir, Zamir
2010-03-19 19:28:27 UTC
Permalink
Hi All,
?
We are working in real env. and lost cvs directory which was using between different developers, Does any body have idea retrieving cvs directory in AIX env.
?
Appreciated,
Yasir?
?
Spiro Trikaliotis
2010-03-20 08:55:11 UTC
Permalink
Hello Yadir,
Post by Yasir, Zamir
We are working in real env. and lost cvs directory which was using
between different developers, Does any body have idea retrieving cvs
directory in AIX env.
I assume you lost the directory some/path/CVS.

If you can do a "cvs up" from inside of some/, then I would advise to do
the following:

1. Move away the path/ directory:
***@somewhere:some$ mv path path.old

2. Now, do a "cvs update" with -d option to regenerate directories not
locally available:
***@somewhere:some$ cvs up

This will generate some/path/, along with some/path/CVS/

3. Now, diff and patch (or copy, if you are really sure what you are
doing) the changes from some/path.old/ to some/path/. If you use
diff, don't forget to ignore differences in CVS/ directory by using
"-x CVS", like:

***@somewhere:some$ diff -urNx CVS path path.old > 1.diff
***@somewhere:some$ cd path/
***@somewhere:some/path$ patch -p1 < ../1.diff

4. Do a "cvs diff" to make sure you only added the changes you did
locally (someone might have changed files on the CVS server in the
meantime!). If there are any changes you did not do youself, make
sure to undo them. Otherwise, you will undo the changes of your
co-workers!

5. When you are really sure some/path/ is correct, you can remove
some/path.old. I would highly recommend to check twice and thrice
before doing this!

HTH,
Spiro.
--
Spiro R. Trikaliotis http://opencbm.sf.net/
http://www.trikaliotis.net/ http://www.viceteam.org/
Loading...