You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Enrico Weigelt <we...@metux.de> on 2008/06/13 17:06:17 UTC

Removing old stuff

Hi folks,


even I know it's not what svn is designed for - is there any way 
for removing old stuff from the server ?

The point is: I'm heavily using svn for almost evrything where
I have to edit some files. Even things which are - in longer terms -
temporary. So, if I've definitively finished with some project 
and sure I'll never need it anymore - I'd like to remove to 
safe resources. 

One idea would be, starting from top, looking for certain removed 
files and remove their changes step by step into history. This 
stops at the point where it was added or copied (as it never 
would have been existed).

The svn server itself, IMHO, only has to support removing the 
top change of some file, and maybe the file itself if there's
no more change or copy on it. Everything else might be done
on client side.

After this process, some revisions might just be empty.


What do you think about this ?

cu
-- 
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service - http://www.metux.de/
---------------------------------------------------------------------
 Please visit the OpenSource QM Taskforce:
 	http://wiki.metux.de/public/OpenSource_QM_Taskforce
 Patches / Fixes for a lot dozens of packages in dozens of versions:
	http://patches.metux.de/
---------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Removing old stuff

Posted by Enrico Weigelt <we...@metux.de>.
* Andy Levy <an...@gmail.com> wrote:

Hi,

(CC'ing this to -dev list)


> http://subversion.tigris.org/faq.html#removal

Yep, I'm aware of that. As this issue is now open for about 
7 years, I'd like to start with small steps instead of the 
whole obliteral spec draft.

Let's just take a special case: just remove the top change 
of a single file. And let's further assume that this file 
already has been deleted in the last K revisions, so users 
won't have it still in their working copy, nobody will do 
an checkout of that file in the middle of our work.
(delegating this to administration ;-P).

Then we just have to remove the last change directly under 
the deletion point iteratively, until we reach some point
of fork (copy) or initial upload. Then:

a) we've got an fork -> exactly that change which made the
   fork (the pointer which tells, "this file was copied 
   from [...] at [...]) and the deleting change.
   
b) we've got an initial upload -> remove that upload change
   and the deleting one.
   
At this point, we cleanly would have removed the patchline
for a specific file. Everything else (including revision 
numbering) would remain untouched.


More complex things like removing a whole subtree later can
build on that.


cu
-- 
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service - http://www.metux.de/
---------------------------------------------------------------------
 Please visit the OpenSource QM Taskforce:
 	http://wiki.metux.de/public/OpenSource_QM_Taskforce
 Patches / Fixes for a lot dozens of packages in dozens of versions:
	http://patches.metux.de/
---------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Removing old stuff

Posted by Enrico Weigelt <we...@metux.de>.
* Andy Levy <an...@gmail.com> wrote:

Hi,

(CC'ing this to -dev list)


> http://subversion.tigris.org/faq.html#removal

Yep, I'm aware of that. As this issue is now open for about 
7 years, I'd like to start with small steps instead of the 
whole obliteral spec draft.

Let's just take a special case: just remove the top change 
of a single file. And let's further assume that this file 
already has been deleted in the last K revisions, so users 
won't have it still in their working copy, nobody will do 
an checkout of that file in the middle of our work.
(delegating this to administration ;-P).

Then we just have to remove the last change directly under 
the deletion point iteratively, until we reach some point
of fork (copy) or initial upload. Then:

a) we've got an fork -> exactly that change which made the
   fork (the pointer which tells, "this file was copied 
   from [...] at [...]) and the deleting change.
   
b) we've got an initial upload -> remove that upload change
   and the deleting one.
   
At this point, we cleanly would have removed the patchline
for a specific file. Everything else (including revision 
numbering) would remain untouched.


More complex things like removing a whole subtree later can
build on that.


cu
-- 
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service - http://www.metux.de/
---------------------------------------------------------------------
 Please visit the OpenSource QM Taskforce:
 	http://wiki.metux.de/public/OpenSource_QM_Taskforce
 Patches / Fixes for a lot dozens of packages in dozens of versions:
	http://patches.metux.de/
---------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Removing old stuff

Posted by Andy Levy <an...@gmail.com>.
On Fri, Jun 13, 2008 at 1:06 PM, Enrico Weigelt <we...@metux.de> wrote:
>
> Hi folks,
>
>
> even I know it's not what svn is designed for - is there any way
> for removing old stuff from the server ?
>
> The point is: I'm heavily using svn for almost evrything where
> I have to edit some files. Even things which are - in longer terms -
> temporary. So, if I've definitively finished with some project
> and sure I'll never need it anymore - I'd like to remove to
> safe resources.

http://subversion.tigris.org/faq.html#removal

> One idea would be, starting from top, looking for certain removed
> files and remove their changes step by step into history. This
> stops at the point where it was added or copied (as it never
> would have been existed).
>
> The svn server itself, IMHO, only has to support removing the
> top change of some file, and maybe the file itself if there's
> no more change or copy on it. Everything else might be done
> on client side.
>
> After this process, some revisions might just be empty.
>
> What do you think about this ?

I think there's probably more to it than you realize, which is part of
the reason why, as the FAQ indicates, it hasn't been implemented yet.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org