[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[ANN] Piston 1.3.2: More switch corrections

Francois Beausoleil

3/9/2007 3:45:00 PM

Sorry for the double message, but I found another bug in the pistonswitch subcommand. This warranted another patch release, or else itwould 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 ofthe files, which you can modify at will. As long as the changes aremergeable, 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 pistonEnjoy !-- François Beausoleilhttp://blog.teksol.info/http://piston.ruby...
2 Answers

hemant

3/9/2007 3:53:00 PM

0

On 3/9/07, François 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
>

Ok, say I have checked out code from some remote repo using piston in
"/vendor/plugins" directory of rails and have modified the plugin.
Now, I want to checkin these modifications to the remote repository,
so that other people can also get the new code.

So, how does piston solve this problem? can i checkin my plugin from
RAILS_ROOT, assuming RAILS_ROOT is associated with different SVN repo
and plugin has been downloaded from different svn repo?


--
gnufied
-----------
There was only one Road; that it was like a great river: its springs
were at every doorstep, and every path was its tributary.
http://people.inxsasia.c...

Christoph Sturm

3/9/2007 5:57:00 PM

0

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çois 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çois Beausoleil
> http://blog.te...
> http://piston.ruby...
>


--
christoph.sturm@gmail.com