<?xml version="1.0" encoding="UTF-8"?>
<codes type="array">
  <code>
    <code>#!/usr/bin/ruby -w

status, *cmd = ARGV

`svn st`.each do |line|
  if matches = /^#{Regexp.escape(status)}\s+(.*)$/.match(line)
    tmp = cmd.map {|c| c.gsub(/\$/,matches[1])}
    tmp &lt;&lt; matches[1] if tmp == cmd
    puts tmp.join(' ')
  end
end
</code>
    <comment>For those who work with subversion, here is a little interface to subversion status command. I've made it to facilitate my svn operation on files, because sometimes when you do a "svn st" command and there is many files with a common status you would want to play with it, it is easier to use that kind of command. You can read a small article on my blog about how to use it (http://philrathe.com/2007/11/27/svndo-to-do-less-svn-typing/).

Thanks Marc-Andr&#233; for your help on this.

Happy hacking! </comment>
    <created-at type="datetime">2007-12-17T19:01:42+00:00</created-at>
    <id type="integer">186</id>
    <language>Ruby</language>
    <permalink>script-for-subversion-status-manipulation</permalink>
    <refactors-count type="integer">2</refactors-count>
    <title>script for subversion status manipulation</title>
    <trackback-url>http://philrathe.com/2007/11/27/svndo-to-do-less-svn-typing/trackback</trackback-url>
    <updated-at type="datetime">2007-12-18T13:43:44+00:00</updated-at>
    <user-id type="integer">414</user-id>
    <user>
      <id type="integer">414</id>
      <identity-url>http://philippe.rathe.myopenid.com</identity-url>
      <name>philippe.rathe.myopenid.com</name>
      <rating type="float">0.0</rating>
      <refactors-count type="integer">2</refactors-count>
      <website nil="true"></website>
    </user>
  </code>
</codes>
