newsSavannah Administration - News: Synchronizing your working copy with the restore repository

 
 
Latest News
frontend upgraded posted by ineiev, Wed 31 Jan 2024 05:45:55 PM UTC
[download] SFTP disabled posted by ineiev, Mon 27 Nov 2023 11:00:33 AM UTC
git post-receive UDP syndication posted by carlc, Thu 31 Aug 2023 11:57:10 PM UTC
re-enabling reminders posted by ineiev, Tue 02 May 2023 11:40:13 AM UTC
frontend upgraded posted by ineiev, Fri 13 May 2022 06:43:50 AM UTC

Synchronizing your working copy with the restored repository

Item posted by Sylvain Beucler <Beuc> on Fri 16 Mar 2007 12:10:28 AM UTC.

You may be in the situation where you have changes in your CVS working copy that are not committed in the restored Savannah repository anymore. strk suggested the following procedure:

  1. Get a fresh cvs export from the repository (call it fresh-export)
  2. Turn your latest working copy into "export" form (remove everything should not be fetched by an export - see below)
  3.  diff -ur fresh-export/ latest-working-copy/ > changes.diff
  4.  Check the diff, if it contains more then it should, goto (2)
  5.  Get a fresh cvs checkout (call it fresh-checkout)
  6.  Apply the diff obtained in step (3) to fresh-checkout/ (with patch)
  7.  'cvs add' the new stuff (list the new files with "cvs -n update")
  8.  Build & test patched fresh-checkout/
  9.  Cross fingers
  10.  Commit
  11.  Checkout the whole project again, build&test

 
 
Note about step (2), or how to turn your latest working copy into "export" form:

$ cd latest-working-copy
# Remove CVS/ and compiled files:
$ find . -name "CVS"  | xargs rm -Rf # CVS *dirs*
$ find . -name '.#*' | xargs rm # backup copies
$ make clean distclean
$ find . -name 'Makefile' | xargs rm # if autoconf
$ find . -name 'Makefile.in' | xargs rm # if automake
$ rm -Rf configure autom4te.cache aclocal.m4 # generated stuff


Note: if you perform a 'cvs update' in your working copy, CVS will "go back in time" and revert to the repository version, possibly losing your uncommited changes.

 

Back to the top

Powered by Savane 3.13-cf05.
Corresponding source code