You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by an...@amd.com on 2004/05/17 16:47:26 UTC

Deleting things from svn

> >Nope.  I need the same thing, and the only solution I've found is to use
> >CVS for the data tree and SVN for the source tree, which is a pain (but
> >better than using CVS for everything).
> >
> Are you saying that CVS handles changing binaries better than SVN? 
> What's your definition of "better"?

CVS and RCS allow you to delete (out-date) old revisions,
whether binary or not.  If you are short of space, this
helps.

> This comparison is tricky, because there are two kinds of "unlink" in 
> Subversion: "svn remove", which we have, and "svn obliterate", which is 
> on the wishlist. The latter would remove all traces of a file, its data 
> and history, from the repository.

How about "svn delete.
where remove <= delete <= obliterate.

svn remove removes something from the HEAD, but
leaves its versions and log entries in the
repository.

svn obliterate, as you describe it, removes
all traces of a file, it's data and history,
from the repository.

Q: who wants svn obliterate?
I suppose that svn obliterate might be needed for some
legal requirements, e.g. where you have been working for
the CIA, and now no longer are allowed to have the 
source file, nor even to mention that it existed.

Myself, I would prefer something not quite so extreme:
svn delete.  Remove the data, the revisions, for a file,
but leave the log messages - noting that the revision once
existed, but now no longer does.  I don't work for the CIA,
although the comp;anies that I have worked for - Gould, 
Motorola, Intel, and AMD - are quite insistent that I not
keep any coe that I wrote while working for them.


> I _still_ don't see a valid reason why those can't be just ordinary 
> files sitting on the filesystem.

The original posters were talking about binary files:
me, I am talking about ordinary source code.

E.g. I have been maintaining several tools and libraries
since my undergraduate days, 18+ years ago.  E.g.: debug.h,
a debug header; mkIrecog, a decoder generator; getnumber,
a number parser that recognzes numbers such as 1M-1;
libuarch, a CPU microarchitectre library; 
and PerlSQL. Various of these have been placed into the
public domain; but sometimes, when I have started using
them at companies, the company has owned the rights to
the changes.  E.g. mkIrecog was the basis for the Intel
P6 instruction decoder; I own the rights prior to Intel,
and I own the rights sbsequent to my leaving Intel; but
 do not own the changes that I made while I was at Intel.

I tend to keep all of my code in a repository, that has
changed over the years from SCCS to RCS to CVS and may soon
change to Subversion.  I try to keep company owned stuff 
separate, but nevertheless, every time I have left a company
I have had to go and RCS out-date some revisions that sneaked
into my personal repository.  (Bug fixes and portability
tweaks to existing code I check into my repository; 
new features added on behalf of my employer they own.)



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

Re: Deleting things from svn

Posted by Chris Abajian <ca...@fhcrc.org>.
my $0.02:

andy.glew@amd.com wrote:

> Q: who wants svn obliterate?
> I suppose that svn obliterate might be needed for some
> legal requirements, e.g. where you have been working for
> the CIA, and now no longer are allowed to have the 
> source file, nor even to mention that it existed.

I'm working at a medical research facility and it's easy to imagine 
circumstances where true deletion of files (e.g. documents containing 
identifiable patient data) might be required under various regulations.

-- 
Chris Abajian
COMPASS / Public Health Sciences

Fred Hutchinson Cancer Research Center
1100 Fairview Ave N, Building M, M1-B514
Seattle, WA 98109-1024

206.667.7861 (Office)
206.667.5964 (Fax)



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

Re: Deleting things from svn

Posted by John Peacock <jp...@rowman.com>.
andy.glew@amd.com wrote:

> svn obliterate, as you describe it, removes
> all traces of a file, it's data and history,
> from the repository.

I think that you are misreading what has been described as "obliterate".  As I 
understand it, the functionality would simple be to permanently delete certain 
data from the database.  This might include all traces of a file's contents, 
logs, etc.  Or it might be everything except the most current version.  I 
suspect that it will be possible to delete selective elements, and yet maintain 
the partial checkout of earlier revisions which included that file (like a 
boilerplate "FILE NO LONGER HERE").

This would cover most of the use cases that have been described:

1) large binary files could be pruned to include only X revisions back;
2) secret code could be removed completely
3) logs could be preserved but file contents removed
...

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748

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