[rspec-users] [OT] SVN Utils from: When to use BDD/TDD w/ external libraries

David Chelimsky dchelimsky at gmail.com
Sun Jun 10 10:51:36 EDT 2007

On 6/10/07, nicholas a. evans <nick at ekenosen.net> wrote:
> On 6/8/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote:
> > I wonder if it would be worth while developing some shell scripts to
> > supplement SVN?
> For what it's worth, I'll show you my svn aliases... but some of them
> are highly specific to my workflow, so I don't really think they're
> worth sharing around much:
> http://pastie.caboo.se/69244

Cool. Here's another one I use all the time to see what files I've
created that I haven't added to svn.

snew() { svn st | awk '/^\?/ {print $2}' }

It prints a list of only the filenames, which you can then pipe to svn
add w/ xargs:

snew | xargs svn add

> I never bothered to make a bash function to handle subversion move of
> multiple files, but it wouldn't be hard to do.  I just use the for
> loop approach: "for i in src/*; do svn mv $i dest/; done".  I only
> made aliases for the commands that I use often.
> Of course, the various GUI clients make this sort of task much
> simpler, too.  ;-)
> --
> Nick
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users

More information about the rspec-users mailing list