You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by kf...@collab.net on 2006/03/15 14:49:33 UTC

Bug#356900: automatic keyword un-expansion on 'svn {ps,pd,pe} svn:keywords'?

Peter Samuelson <pe...@p12n.org> writes:
> Christof Douma points out that "svn pdel svn:keywords" does not
> un-expand a file's keywords in the working copy.  He thinks it should,
> and I tend to agree.  Present behavior leaves a working copy diff due
> to keyword expansion, even if the file is otherwise unchanged.
> 
> [...]
> 
> Comments?  Please Cc: 356900@bugs.debian.org in replies.

I think that's reasonable.  Having a propdel result in a textual diff
is rather unexpected, and in some sense the in-file expanded portion
of the keyword is "part of" the property.  We'll have to do it
carefully, of course, because the working file might have local mods.

+1 from me, but I'd like to hear at least one other developer come to
the same conclusion before we implement it, as this is a somewhat
noticeable behavior change.

-Karl

-- 
www.collab.net  <>  CollabNet  |  Distributed Development On Demand


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


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

Re: automatic keyword un-expansion on 'svn {ps,pd,pe} svn:keywords'?

Posted by John Peacock <jp...@rowman.com>.
kfogel@collab.net wrote:
> I think that's reasonable.  Having a propdel result in a textual diff
> is rather unexpected, and in some sense the in-file expanded portion
> of the keyword is "part of" the property.  We'll have to do it
> carefully, of course, because the working file might have local mods.

CAVEAT: Not a developer, but someone interested in keywords in general.

Personally I think it would be _much_ more surprising to automatically 
unexpand the keyword when the matching property is deleted.  If someone 
sets one of the expanding properties and the unsets it, either they made 
a mistake in the first place (and should revert that expanded text on 
their own) or they meant to do that to freeze the expanded text (and 
hence the diff is completely legit).

For example, a site policy is that all new files are to be created with 
svn:keywords "Author" set and then committed.  Then, the svn:keywords 
"Author" is to be removed and the file committed again, thus orphaning 
the original Author information in the file for all time.  Sure this is 
stupid, but it does correspond to some behavior that has been used in 
CVS in the past (although there I believe it was freezing $Id$ on tags).

My 2 cents

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: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org