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

Warn if files match list of extensions

From: Ryan J Ollos <ryano_at_physiosonics.com>
Date: Fri, 28 Aug 2009 00:23:33 -0700 (PDT)


A rather frequent problem I have encountered is that users accidentally add exe and dll files to the repository. I have cut down on this quite a bit by setting up svn:ignore properties for directories such as bin and obj, but it still happens rather often.

There are times when this is necessary, so I don't want to definitively block committing files with those extensions.

It seems to me that any server side repository hook would only be effective in *blocking* commits. I don't see how a warning can be issued through a repository hook.

However, I noticed that with the bugtraq properties configured, TSVN gives a nice warning if a commit message does not reference a ticket. This is exactly the type of warning message that I would like! But I would like the message to be displayed when a file matches a list of extensions.

For example, the property might be:

tsvn:warniffileextension = exe, dll

The warning box would say:

"You are trying to commit a file with extension %s. Are you sure you want to commit this file?"

Is that a possible enhancement?

- Ryan


To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-08-28 09:26:59 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.