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

Re: Newbie: What's wrong with my attempt to restructure repository?

From: Josh Gilkerson <jwg_at_google.com>
Date: 2007-05-10 22:03:07 CEST

Forgot a commit.

On 5/10/07, Josh Gilkerson <jwg@google.com> wrote:
> How about this:
>
> Make sure you have backed things up and have checked your changes in,
> but not in that order.
>
> Check out a wc somewher temporary.
> cd $tmpdir
> svn co $repo
>
> create an httpd directory or even better, put in in a trunk dir.
> svn mkdir trunk
> svn mkdir trunk/httpd
>
> Move all your files.
> for i in *; do if [ "$i" = 'trunk' ]; then continue; fi svn mv "$i"
> trunk/httpd; done

svn commit

> Switch your httpd to point to the new repository.
> cd /etc/httpd
> svn switch $repos/trunk/httpd
> svn update
>
> On 5/10/07, Zembower, Kevin <kzembowe@jhuccp.org> wrote:
> > I've don't have much experience with Subversion. I'm currently only
> > trying to use it to track changes to configuration files under /etc/. I
> > originally set up my repository at /var/svnrepos/systemroot on my RHEL4
> > system using Subversion 1.1.4. I then imported /etc/httpd, but
> > accidentally put it at the root of the repository tree. I just left this
> > alone initially, because /etc/httpd was all I needed to track.
> >
> > Now, however, I'd like to add /etc/nagios2 to the repository. If I just
> > add it with 'svn import nagios2 file:///var/svnrepos/systemroot' I think
> > that I'll permanently embed nagios2 in the files for httpd. Would this
> > be what would happen?
> >
> > What I tried to do was ' svnadmin dump /var/svnrepos/systemroot/
> > >/tmp/svnrepos.dump' the whole repository (containing only httpd files
> > at this time), erased the repository, 'svnadmin create /var/svnrepos'
> > (didn't see the point of the subdirectory 'systemroot') and tried
> > 'svnadmin load' with a new parent directory, but got this result:
> >
> > www:~# svnadmin create /var/svnrepos
> > www:~# svnadmin load /var/svnrepos --parent-dir httpd
> > </tmp/svnrepos.dump
> > <<< Started new transaction, based on original revision 1
> > * adding path : httpd/conf ...svn: File not found: transaction '1',
> > path 'httpd/conf'
> > www:~# svnadmin load /var/svnrepos/httpd </tmp/svnrepos.dump
> >
> > svn: Can't open file '/var/svnrepos/httpd/format': No such file or
> > directory
> > www:~# svnadmin load --parent-dir httpd /var/svnrepos
> > </tmp/svnrepos.dump
> > <<< Started new transaction, based on original revision 1
> > * adding path : httpd/conf ...svn: File not found: transaction '2',
> > path 'httpd/conf'
> > www:~#
> >
> > Can anyone give me some advice on what I'm doing wrong, and how to
> > correct it? The repository originally holding httpd is up to revision
> > 46, and I'd like to preserve all these changes when I restructure if
> > possible. If not, I can just remove all the .svn directories in
> > /etc/httpd and start over, I guess.
> >
> > Thank you for your advice and suggestions.
> >
> > -Kevin
> >
> > Kevin Zembower
> > Internet Services Group manager
> > Center for Communication Programs
> > Bloomberg School of Public Health
> > Johns Hopkins University
> > 111 Market Place, Suite 310
> > Baltimore, Maryland 21202
> > 410-659-6139
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> > For additional commands, e-mail: users-help@subversion.tigris.org
> >
> >
>
>
> --
> Josh Gilkerson
> Software Engineer
> Google, Inc
>

-- 
Josh Gilkerson
Software Engineer
Google, Inc
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu May 10 22:03:47 2007

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.