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

RE: Feature Proposal: Local Ignores

From: Bolstridge, Andrew <andy.bolstridge_at_intergraph.com>
Date: Wed, 11 Feb 2009 17:33:24 -0000

And for future reference, if you're running subversion on Windows
server, and you want 'universal' ignores ;) then use this in your
pre-commit cmd file: (ignore-matches.txt is a file of extensions to
reject, one per line, in the regexp format ".*\.XYZ")

----------
@echo off

svnlook changed -t %2 %1 > c:\temp\pre-commit.txt

findstr /G:"%1\hooks\ignore-matches.txt" c:\temp\pre-commit.txt >
c:\temp\precommit-bad.txt
if %ERRORLEVEL% NEQ 0 exit 0

echo disallowed file extension >> c:\temp\precommit-bad.txt

type c:\temp\precommit-bad.txt 1>&2
exit 1
---------

-----Original Message-----
From: Ryan Schmidt [mailto:subversion-2009a_at_ryandesign.com]
Sent: Wednesday, February 11, 2009 1:21 AM
To: Bolstridge, Andrew
Cc: users_at_subversion.tigris.org
Subject: Re: Feature Proposal: Local Ignores

Ah, but you do not end up with useless objects in your repo if you
write a pre-commit hook preventing the commit of objects you consider
useless. The error message that your pre-commit hook prints can
inform the user how to set up their global-ignores to prevent the
situation in the future.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1139984

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-02-11 18:34:43 CET

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.