<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Recent Posts in Post commit hook for global rev# | Unfuddle Community</title>
    <link>http://unfuddle.com/community</link>
    <description>Unfuddle Community Forums</description>
    <item>
      <guid isPermaLink="false">www.unfuddle.com/community:5:936:2678</guid>
      <title>Post commit hook for global rev# posted by cheesegrits @ Wed, 23 Jun 2010 17:56:44 UTC</title>
      <link>http://www.unfuddle.com/community/forums/5/topics/936</link>
      <description>Hey Joshua, long time, etc.

I asked this one a while back, am hoping maybe there may be a solution for this by now.

I need some kind of post commit hook to solve the old &quot;global rev# in code&quot; problem.  SVN provides keyword substitution for $Rev$ (or whatever it is), but this is on a per-file basis, there's no way to embed the latest global rev#.  And because I'm working with a PHP project, which my users access directly, there's no concept of a &quot;build&quot; process during which I can do this myself using any of the various command line utils for obtaining the global rev#.

So I need some way of poking the global rev# of the commit into a version file in the post-commit phase.

This is quite a big issue for us when it comes to support ...

   -- hugh</description>
      <pubDate>Wed, 23 Jun 2010 17:56:44 UTC</pubDate>
      <author>cheesegrits</author>
    </item>
    <item>
      <guid isPermaLink="false">www.unfuddle.com/community:5:936:2679</guid>
      <title>Post commit hook for global rev# replied by Joshua Frappier @ Wed, 23 Jun 2010 18:39:58 UTC</title>
      <link>http://www.unfuddle.com/community/forums/5/topics/936</link>
      <description>Hugh,

I can still see how this is helpful. However, as you can imagine, every project might possibly have completely different requirements when it comes to exactly how the revision information should be injected into the repository after every commit. We could make it an option to do something very generic (like put the version into a VERSION file), but it seems to me that this would be useful to only a very, very small handful of Subversion users.

When committing, on all but the most active of repositories, you have a VERY good idea as to what the next version will be after the commit has completed. I would suggest simply manually inserting the next revision into your codebase, where appropriate, before committing. It is not fully automated, but it would work for you right now.</description>
      <pubDate>Wed, 23 Jun 2010 18:39:58 UTC</pubDate>
      <author>Joshua Frappier</author>
    </item>
    <item>
      <guid isPermaLink="false">www.unfuddle.com/community:5:936:2688</guid>
      <title>Post commit hook for global rev# replied by cheesegrits @ Tue, 29 Jun 2010 03:15:39 UTC</title>
      <link>http://www.unfuddle.com/community/forums/5/topics/936</link>
      <description>Hmmmm.    I'm not sure what would be confusing about an option under Project Settings to &quot;Write latest global revision to file: &lt;filename&gt;&quot;.  And I speak as someone who confuses easily.  However, I do understand a Definitive No when I hear one.  Doesn't stop me whining about it tho.  :)

Can you think of any way I might be able to automate this myself?  I seem to recall some discussion way back about exposing some post-commit hooks through the API ...

   -- hugh</description>
      <pubDate>Tue, 29 Jun 2010 03:15:39 UTC</pubDate>
      <author>cheesegrits</author>
    </item>
    <item>
      <guid isPermaLink="false">www.unfuddle.com/community:5:936:2682</guid>
      <title>Post commit hook for global rev# replied by Joshua Frappier @ Thu, 24 Jun 2010 14:05:25 UTC</title>
      <link>http://www.unfuddle.com/community/forums/5/topics/936</link>
      <description>Hugh, I am afraid the answer will still be a definitive &quot;no&quot; for now. I am still convinced that the number of people who would actually use this feature to be so small (i.e. one) as to be more confusing than helpful.</description>
      <pubDate>Thu, 24 Jun 2010 14:05:25 UTC</pubDate>
      <author>Joshua Frappier</author>
    </item>
    <item>
      <guid isPermaLink="false">www.unfuddle.com/community:5:936:2681</guid>
      <title>Post commit hook for global rev# replied by cheesegrits @ Wed, 23 Jun 2010 19:23:08 UTC</title>
      <link>http://www.unfuddle.com/community/forums/5/topics/936</link>
      <description>Of course, I'm going to disagree.  :)

I think this would be of value to anyone hosting a PHP project, or any other scripting language that doesn't involve a build process.

And that's really all I want, is the global rev# stuffed into a file.  Doesn't need to be in any language specific format, just something I can open and grab a number from in my 'about()' code.  And (although it would be nice) I don't even need to be able to specify what file ... just 'global_revision.txt' at the top level of that repo would work for me.

The &quot;remember to update a file by hand every time you commit&quot; thing just doesn't fly, for various reasons.  Well, mostly because I'm lazy, insanely busy and have a brain like a sieve and never remember to do it.  But those ARE perfectly valid reasons.  :)

Pretty please?  With a cherry on top?  It would make our life soooooooo much easier ... and you'd have my undying gratitude, forever.  Heck, I'd have a word with the Queen, maybe arrange a Knighthood or something for you.

   -- hugh</description>
      <pubDate>Wed, 23 Jun 2010 19:23:08 UTC</pubDate>
      <author>cheesegrits</author>
    </item>
  </channel>
</rss>

