[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Important: Will using svndumpfilter confuse local edits?

From: x nooby <xnooby_at_yahoo.com>
Date: 2005-09-29 01:19:09 CEST

Early tommorow morning I am going to remove a big
project that was accidently imported in to my
subversion database. I developed a procedure for
dump-filter-load, but I am fearful that my users
working copies will get out of sync with the
repository (which would be bad).

There was one giant import that is in it's ownbranch,
and was a single revision number. In my procedure
below, "acmeclient" is the branch I want to remove,
while "anotherclient" is one I want to keep. This is
on a Windows server.

Will people be able to checkin and update normally
after I rebuild the repository - or will their edits
be lost?

Any suggestions before Thursday 7am would be
appreciated, I can abort if it looks like I am way off
base. I tested this process on my local desktop
machine with a hotbackup, and it seemed to work,
though I could only access through the "file"
protocol. The server runs Windows svnserve.

Here is the procedure I plan to follow early tommorow:

This example will remove svnrepo/acmeclient from the
repository:

  (1) Stop the Subversion service

  (2) "svnadmin dump c:\svnrepo >dumpfile.txt"

  (3) "svndumpfilter exclude svnrepo/acmeclient
<dumpfile.txt >fixedfile.txt"

  (4) Rename c:\svnrepo to c:\svnrepo_backup

  (5) "svnadmin create c:\svnrepo --fs-type fsfs"

  (6) "svnadmin load c:\svnrepo <fixedfile.txt"

  (7) Copy c:\svnrepo_backup\conf\* files to
c:\svnrepo\conf\*

  (8) Verify acmeclient is only present in backup:

      svn list file:///c:/svnrepo/svnrepo/
      svn list file:///c:/svnrepo_backup/svnrepo

  (9) Start the Subversion service

  (10) Check the server functionality:

      svn list svn://server1.mycompany.com/svnrepo
      svn list
svn://server1.mycompany.com/svnrepo/anotherclient/trunk/guicode

                
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Sep 29 01:20:58 2005

This is an archived mail posted to the Subversion Users mailing list.