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

RE: Re: how many times was file changed

From: Reedick, Andrew <Andrew.Reedick_at_BellSouth.com>
Date: 2006-07-17 16:17:32 CEST

> -----Original Message-----
> From: Ryan Schmidt [mailto:subversion-2006c@ryandesign.com]
> On Jul 15, 2006, at 23:43, Martin Minka wrote:
>
> > Is it an option to use HOOKS to automaticaly increase value of
> > PROPERTY (for
> > example cad:revnum) ?
> >
> > I want to use SVN to store CAD drawings and I need to know
> the rev.
> > number
> > of particular drawing and can not use the global repository
> > revision number.
>
>
> I don't think so. A pre-commit hook may not modify the data in the
> transaction. That includes file contents and file (versioned)
> properties. The pre-commit hook may modify revision (unversioned)
> properties, but that wouldn't do you any good, since you would
> probably like to store this value with the file.

Revision properties would work. Just use a property name of:
        cad_ver:some:dir:path:to:foo.cad = 123
for each cad file in the transaction. Slashes are illegal to use in
property names, so you have to use colons or something else.

However, a hard coded dir name doesn't fare too well in light of
renames, moves, or copies. You would need to
        1. svn log foo.cad
        2. svn info the revision of foo.cad that you want
        3. use the url from the svn info to lookup the cad_ver property

*****

The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. 117

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jul 17 16:19:42 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.