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

Re: Determining which files are treated as binary

From: <kfogel_at_collab.net>
Date: 2005-06-02 18:37:52 CEST

Dominic Anello <danello@danky.com> writes:
> > I'm not planning to alter a commit transaction. I'm modifying a
> > property (which isn't version controlled anyway) *after* a commit
> > transaction. I understand why you can't modify a commit in a
> > pre-commit hook, but I don't see any issues in updating the repository
> > in a post-commit hook.
> ----8<----
> Properties *are* version-controlled. Revision properties aren't, but
> svn:mime-type isn't a rev prop. Furthermore, if you look at the help
> for svn propset, you'll see that ps without the --revprop flag only
> accepts PATHs as an argument, so you have to check out a working copy.
> Not to say it can't be done, but your hook script will both create
> additional revisions and need to manage working copies.

You are right about the different kinds of properties.

However, it is technically possible (though we strongly recommend
against it!) to modify versioned-controlled properties in the
repository without using a working copy. Just use the svn_repos_* and
svn_fs_* APIs, either directly or through some language bindings.

Again, don't do this in a pre- or post-commit hook. It's important
that repository txns remain exactly as clients committed them,
otherwise the client's working copy will be out-of-date but the client
won't know it.


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jun 2 19:27:22 2005

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.