Bugs: Browse | Submit New | Admin

[#20104] Error when switching importing over an svn piston external to a git svn external

Date:
2008-05-13 00:59
Priority:
3
Submitted By:
Brian Takita (btakita)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Error when switching importing over an svn piston external to a git svn external

Detailed description
The repo was checked out from subversion. We attempted to force an import of a git repo over the directory and got an
error.

I noticed Piston::Git::WorkingCopy.understands_dir?(dir) returned false.
It fell through to line 33 in git/working_copy.rb

grockit@Macpro03-desktop ~/workspace/piston (git::master) $ piston import git://github.com/btakita/js_spec_server.git
vendor/plugins/js_spec --force --repository-type Git
 INFO main: Forced repository type to Git
 INFO main: Guessing the working copy type
/usr/local/lib/site_ruby/1.8/piston/git/working_copy.rb:12
svn: 'vendor/plugins' is not a working copy
svn: Can't open file 'vendor/plugins/.svn/entries': No such file or directory
F, [2008-05-12T17:53:55.425840 #18931] FATAL -- : Don't know what working copy type vendor/plugins/js_spec is.
(Piston::WorkingCopy::UnhandledWorkingCopy)
/usr/local/lib/site_ruby/1.8/piston/working_copy.rb:19:in `guess'
/usr/local/lib/site_ruby/1.8/piston/commands/import.rb:35:in `run'
/usr/local/lib/site_ruby/1.8/piston/cli.rb:90:in `run'
/usr/lib/ruby/gems/1.8/gems/main-2.8.0/lib/main/base.rb:25:in `call'
/usr/lib/ruby/gems/1.8/gems/main-2.8.0/lib/main/base.rb:25:in `run'
/usr/lib/ruby/gems/1.8/gems/main-2.8.0/lib/main/base.rb:13:in `catch'
/usr/lib/ruby/gems/1.8/gems/main-2.8.0/lib/main/base.rb:13:in `run'
/usr/lib/ruby/gems/1.8/gems/main-2.8.0/lib/main/base.rb:436:in `mode_run!'
/usr/lib/ruby/gems/1.8/gems/main-2.8.0/lib/main/base.rb:10:in `run'
/usr/lib/ruby/gems/1.8/gems/main-2.8.0/lib/main/factories.rb:11:in `run'
/usr/lib/ruby/gems/1.8/gems/main-2.8.0/lib/main/factories.rb:16:in `Main'
/usr/local/lib/site_ruby/1.8/piston/cli.rb:6
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
/usr/bin/piston:5

Add A Comment: Notepad

Please login


Followup

Message
Date: 2008-05-14 13:43
Sender: François Beausoleil

Hi and thanks for the bug report.  It is not possible to change
the pistonized directory without removing the original one before.
I want to have an "upgrade" command which will convert
SVN properties to the new .piston.yml format, but it's not ready
yet.
Date: 2008-05-13 03:24
Sender: Brian Takita

I tried uninstalling open4 on my home machine and piston
properly complained.

I'm not sure why Piston didn't not complain about me not
having open4 on my work machine.
Date: 2008-05-13 01:10
Sender: Brian Takita

Piston has a dependency on open4. The Git::Client#git method
silently failed.
Date: 2008-05-13 01:03
Sender: Brian Takita

Oops, I did that in my piston repo.

Here is the command in the correct repo.

grockit@Macpro03-desktop ~/workspace/mmol/vendor
(git::master) $ piston import
git://github.com/btakita/js_spec_server.git
vendor/plugins/js_spec --force --repository-type Git
 INFO main: Forced repository type to Git
 INFO main: Guessing the working copy type
svn: 'vendor/plugins' is not a working copy
svn: Can't open file 'vendor/plugins/.svn/entries': No such
file or directory
F, [2008-05-12T18:02:47.230977 #19744] FATAL -- : Don't know
what working copy type vendor/plugins/js_spec is.
(Piston::WorkingCopy::UnhandledWorkingCopy)
/usr/local/lib/site_ruby/1.8/piston/working_copy.rb:19:in
`guess'
/usr/local/lib/site_ruby/1.8/piston/commands/import.rb:35:in
`run'
/usr/local/lib/site_ruby/1.8/piston/cli.rb:90:in `run'
/usr/lib/ruby/gems/1.8/gems/main-2.8.0/lib/main/base.rb:25:in
`call'
/usr/lib/ruby/gems/1.8/gems/main-2.8.0/lib/main/base.rb:25:in
`run'
/usr/lib/ruby/gems/1.8/gems/main-2.8.0/lib/main/base.rb:13:in
`catch'
/usr/lib/ruby/gems/1.8/gems/main-2.8.0/lib/main/base.rb:13:in
`run'
/usr/lib/ruby/gems/1.8/gems/main-2.8.0/lib/main/base.rb:436:in
`mode_run!'
/usr/lib/ruby/gems/1.8/gems/main-2.8.0/lib/main/base.rb:10:in
`run'
/usr/lib/ruby/gems/1.8/gems/main-2.8.0/lib/main/factories.rb:11:i
n
`run'
/usr/lib/ruby/gems/1.8/gems/main-2.8.0/lib/main/factories.rb:16:i
n
`Main'
/usr/local/lib/site_ruby/1.8/piston/cli.rb:6
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
/usr/bin/piston:5

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item