|
|
| There's more than one way to do things | |
| PerlMonks |
Re: Find svn log revisions with log message matching a given stringby hossman (Parson) |
| on Jan 27, 2010 at 02:30 UTC ( #819831=note: print w/ replies, xml ) | Need Help?? |
|
Will break if for some reason you are fond of putting horizontal rules (i.e. 72 consecutive - characters) in your commit messages. You're depending on some implementation specific markup that won't necessarily exist for every client. The XML format (svn log --xml {url}) is a bit more standard if you want to parse it with tools (or you might consider using SVN::Client) I would rather do -n than while (<STDIN>) {...}, but perl then treats my search term as a file to be processed, which makes me sad. That's because you are reading from @ARGV after the <> operator (generated by -n) is. Try something like...
...or...
In Section
Cool Uses for Perl
|
|
||||||||||||||||||||||