Hello Francois!

It seems there are still some problems with switch:

here's what happens when i try to switch my rspec_on_rails plugin from
the 0_8_1 tag to the 0_8_2 tag:

zen% piston switch
svn://rubyforge.org/var/svn/rspec/tags/REL_0_8_2/rspec_on_rails/vendor/plugins/rspec_on_rails
vendor/plugins/rspec_on_rails
Processing 'vendor/plugins/rspec_on_rails'...
  Fetching remote repository's latest revision and UUID
  Restoring remote repository to known state at r1561
  Updating remote repository to
svn://rubyforge.org/var/svn/rspec/tags/REL_0_8_2/rspec_on_rails/vendor/plugins/rspec_on_rails@1560
svn: Target path does not exist
/opt/local/lib/ruby/gems/1.8/gems/piston-1.3.2/lib/piston/command.rb:47:in
`svn': Command svn switch --revision 1560
svn://rubyforge.org/var/svn/rspec/tags/REL_0_8_2/rspec_on_rails/vendor/plugins/rspec_on_rails
vendor/plugins/rspec_on_rails.tmp resulted in an error: (RuntimeError)

        from /opt/local/lib/ruby/gems/1.8/gems/piston-1.3.2/lib/piston/commands/switch.rb:51:in
`switch'
        from /opt/local/lib/ruby/gems/1.8/gems/piston-1.3.2/lib/piston/commands/switch.rb:9:in
`run'
        from /opt/local/lib/ruby/gems/1.8/gems/piston-1.3.2/lib/transat/parser.rb:131:in
`execute'
        from /opt/local/lib/ruby/gems/1.8/gems/piston-1.3.2/lib/transat/parser.rb:127:in
`each'
        from /opt/local/lib/ruby/gems/1.8/gems/piston-1.3.2/lib/transat/parser.rb:127:in
`execute'
        from /opt/local/lib/ruby/gems/1.8/gems/piston-1.3.2/lib/transat/parser.rb:104:in
`parse_and_execute'
        from /opt/local/lib/ruby/gems/1.8/gems/piston-1.3.2/bin/piston:10
        from /opt/local/bin/piston:16:in `load'
        from /opt/local/bin/piston:16

regards
 chris

On 3/9/07, FraníĐis Beausoleil <francois.beausoleil / gmail.com> wrote:
> Sorry for the double message, but I found another bug in the piston
> switch subcommand.  This warranted another patch release, or else it
> would have been unusable.
>
> = What is it ?
>
> Piston is a utility that eases vendor branch management.
> This is similar to <tt>svn:externals</tt>, except you have a local copy of
> the files, which you can modify at will.  As long as the changes are
> mergeable, you should have no problems.
>
> = What's changed ?
>
> 2007-03-09 1.3.2
> * piston switch had a bad constant access which caused failures.
>
> = Installation
>
>  sudo gem install --include-dependencies piston
>
> Enjoy !
> --
> FraníĐis Beausoleil
> http://blog.teksol.info/
> http://piston.rubyforge.org/
>


-- 
christoph.sturm / gmail.com