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

Re: use svnadmin to set revision number?

From: Tom Vaughan <tom_at_creativedigitalsys.com>
Date: 2006-07-26 18:08:08 CEST

On Wed, 2006-07-26 at 12:09 +0200, Ryan Schmidt wrote:
> On Jul 26, 2006, at 07:38, Gavin Lambert wrote:
>
> > Quoth Tom Vaughan:
> >
> >> why? why would ci'ing and rm'ing until the revision number is correct
> >> fail me?
> >
> > It might work if *everybody* is guaranteed to be on that exact
> > revision
> > number, and you manage to get the final revision looking *exactly*
> > like
> > it did when they last updated. If anyone at all is on a lower or
> > higher
> > revision, though, or if the revision ends up even slightly different,
> > then their working copies are toast.
> >
> > I could even be wrong about it working in that (very narrow) case --
> > there might be something subtle that I've overlooked.
>
> The above was my line of thinking as well. The working copy contains
> pristine copies of all files, but those files won't necessarily all
> be at the same revision; it is usual for a working copy to be in a
> mixed-revision state -- it will be unless an svn update was done on
> the root of every working copy before the crash, which I imagine is
> unlikely to have occurred.
>
> In order to submit changes to the repository, Subversion constructs a
> diff between the pristine local files and the changed local files. If
> the pristine local files at those revisions don't match what the
> server thinks they look like in those revisions, then the diff that's
> sent to the server won't make sense, and who knows what will happen.

I don't think the state of what I have checked out matters. As I'd have
to strip out everything ".svn", and then copy just the "content" over
into a new checkout from the old repository. So that's something like:

        mv project1 project1.latest
        svn co https://oldserver/project1 project1
        cd project.latest
        find . -type f | grep -v .svn | \
                xargs -I '{}' cp -a '{}' ../project1/'{}'
        cd ../project1
        svn ci project1

No?

-Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jul 26 18:12:44 2006

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.