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

Re: implementing pre-commit-hook to prevent overwriting files under tags-dir

From: Stein Somers <ssomers_at_opnet.com>
Date: Tue, 29 Sep 2009 11:54:11 +0200

>>> $ echo aaa/bbb/tags/version/xxx/yyy | sed -E "s|(tags/[^/]+).*$|\1|"
>
>> no -E option available :(

Using old school regex notation, and -n/p to filter out non-matching lines:

svnlook blah | sed -n 's|^\(.*/tags/[^/]*\)/.*$|\1|p'

-- 
Stein
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2401552
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-29 11:55:08 CEST

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.