[TxMt] SVN Status -> commit button doesn't work?

Allan Odgaard throw-away-1 at macromates.com
Thu Oct 26 16:25:23 UTC 2006


On 26. Oct 2006, at 18:19, Chris Thomas wrote:

> On Oct 26, 2006, at 11:09 AM, Allan Odgaard wrote:
>> So the svn_commit.rb should either be made fallback to entire  
>> project (instead of current file), or accept the arguments given  
>> to it by the status window.
> Actually, this should work as is. format_commit.rb takes the  
> selected paths and also appends whatever paths are passed in:
>
> 	paths_to_commit = TextMate::selected_paths_array
> 	paths_to_commit.concat( ARGV ) unless ARGV.empty?
>
> paths_to_commit is then filtered through "svn status". Maybe  
> format_status.rb isn't passing the paths correctly, or maybe PWD  
> somehow doesn't match up.

Yeah, seems I spoke too soon -- format_status.rb seems to just pass  
the wrong file when there is no selection. So it itself runs svn st  
on the directory, but gives svn_commit.rb the currently open file, or  
something like that.




More information about the textmate mailing list