[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cvs deleted by mistake
From: |
Spiro Trikaliotis |
Subject: |
Re: cvs deleted by mistake |
Date: |
Sat, 20 Mar 2010 09:55:11 +0100 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
Hello Yadir,
* On Fri, Mar 19, 2010 at 03:28:27PM -0400 Yasir, Zamir wrote:
> 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:
address@hidden:some$ mv path path.old
2. Now, do a "cvs update" with -d option to regenerate directories not
locally available:
address@hidden: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:
address@hidden:some$ diff -urNx CVS path path.old > 1.diff
address@hidden:some$ cd path/
address@hidden: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/