[MacPorts] #38902: Write a pre-commit hook to prevent expanded keywords from being committed
MacPorts
noreply at macports.org
Tue Apr 23 16:27:44 PDT 2013
#38902: Write a pre-commit hook to prevent expanded keywords from being committed
----------------------------+-------------------------
Reporter: ryandesign@… | Owner: wsiegrist@…
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: server/hosting | Version:
Keywords: | Port:
----------------------------+-------------------------
We should have a pre-commit hook in the Subversion repository to prevent
expanded keywords from being committed. That is, if a file has
svn:keywords set to "Id", it should not be possible to commit the file
with contents like this:
{{{
$Id: anything $
}}}
The Subversion client is responsible for normalizing this before
committing to:
{{{
$Id$
}}}
The problem is that some committers use non-standard Subversion clients
like git-svn that do not respect this requirement. This could have
unforeseen consequences and should be prevented.
I will work on writing this pre-commit script. It could be combined with
the one needed for #12594.
--
Ticket URL: <https://trac.macports.org/ticket/38902>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list