jeffesp's posterous http://jeffesp.com Most recent posts at jeffesp's posterous posterous.com Tue, 28 Jul 2009 15:01:00 -0700 Subversion Rename using Powershell http://jeffesp.com/subversion-rename-using-powershell-0 http://jeffesp.com/subversion-rename-using-powershell-0 I am working on an ASP.NET project that is hosted in subversion. I mainly use the command line client to work with things, but occasionally that doesn't easily get me where I need to be. I wanted to rename a page with it's codebehind, so I did the following:
get-childitem MyPage.aspx* | %{ svn rename $_ $($_.ToString() -replace 'MyPage', 'new-page') }
This isn't anything new for powershell veterans, but it is the first time I found the immensely useful 'replace' string operation.

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/608554/rodion.jpg http://posterous.com/users/5Al1JBnm830l Jeff Espenschied jeffesp Jeff Espenschied