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

Re: delting old revision files from repo will only delete the headrevision, plus filename case problem

From: Jody Shumaker <jody.shumaker_at_gmail.com>
Date: 2005-11-29 20:01:14 CET

Just as a suggestion, you could make a branch from this old revision, then
delete the file in the branch and work from there.

If you really do want to remove all these improperly named files permanently
it takes a bit of work. You can do so using svnadmin dump/load commands and
svndumpfilter tool outlined in the docs
http://svnbook.red-bean.com/en/1.1/ch05s03.html#svn-ch-5-sect-3.1.2

Doing so can take some time depending on the size of your repository during
which the repository will need to be unavailable.

- Jody

On 11/26/05, Simon Large <simon@skirridsystems.co.uk> wrote:
>
> h.larsen@risoe.dk wrote:
> > I came across the following (for me) surprising behaviour:
> >
> > Repository looks like this with only two files Fa and Fb, just for
> > simplicity:
> >
> > Revision 1: Fa:1; Fb:1;
> > Revision 2: Fa:2; Fb:1;
> > Revision 3: Fa:3; Fb:1;
> > Revision 4: Fa:4; Fb:1;
> >
> > If I open repobrovser into revision 1 and delete Fa:1 (using delete
> > button) I get the following repository:
> >
> > Revision 1: Fa:1; Fb:1; <-- Fa:1 is still there although I deleted it
> > Revision 2: Fa:2; Fb:1;
> > Revision 3: Fa:3; Fb:1;
> > Revision 4: Fa:4; Fb:1;
> > Revision 5: Fb:1; <-- Fa:4 is gone in stead!
> >
> > I.e. I thought to delete Fa:1 but I deleted the head version of Fa! In
> > fact, Fa:1 disappears from the repro-browser file list right after
> > delete, but re-opening the repo-browser reveals its still present in rev
> > 1.
> >
> > I would argue that TSVN is somewhat misleading the user here, because it
> > deletes, without warning, a different file as the one I was expecting to
> > delete, and it removes the file from the file-list, whereas the file
> > actually remains.
>
> I agree, the delete option should only appear when viewing the HEAD
> revision.
>
> > I guess I still have stuff to learn here, but to me it seems not
> > possible to get rid of old revisions. Right?
>
> You cannot delete *any* historical data. That is the purpose of a
> revision control system to preserve data. The only way to do it is
> described in the subversion book, and requires that you dump the
> repository, use svndumpfilter, then reload it.
>
> > You will probably ask why I would want to delete old versioned files.
> > The reason is that I have got a repository haunted by duplicate file
> > names differing only in case. When I checkout one of the old revisions,
> > I get the (in)famous "missing file" error. So I simply thought to get
> > rid of the ones with the "wrong" name. But that does not seem to be
> > possible. So I basically cant checkout these revisions, or can I?
>
> I think you are right. It is not possible, at least on windows, to check
> out a complete revision which contains files differing only in case. Of
> course you can do "Save as..." from the repo browser.
>
> Simon
>
> --
> ___
> oo // \\ "De Chelonian Mobile"
> (_,\/ \_/ \ TortoiseSVN
> \ \_/_\_/> The coolest Interface to (Sub)Version Control
> /_/ \_\ http://tortoisesvn.tigris.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
> For additional commands, e-mail: users-help@tortoisesvn.tigris.org
>
>

--
Received on Wed Nov 30 08:10:15 2005

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

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