[TxMt] SVN Status on project subfolder.
Luke Daley
luke at code4days.com
Thu Jun 29 23:09:15 UTC 2006
On 30/06/2006, at 1:15 AM, Chris Thomas wrote:
> If you edit the Status command in the bundle editor, what text do
> you see there?
>
> It should be something like:
>
> # any files selected in the project drawer?
> if [[ -z $TM_SELECTED_FILES ]]
> then
> # no, try the project root folder, and failing that, the folder
> containing the active file
> export WorkPath="${TM_PROJECT_DIRECTORY:-$TM_DIRECTORY}"
> "$TM_SVN" status "$WorkPath" 2>&1| "${TM_RUBY:-ruby}" -- "$
> {TM_BUNDLE_SUPPORT}/format_status.rb" "--status"
> else
> # yes, send them to status
> eval "$TM_SVN" status "$TM_SELECTED_FILES" 2>&1 |"${TM_RUBY:-
> ruby}" -- "${TM_BUNDLE_SUPPORT}/format_status.rb" "--status"
> fi
I have this...
require_cmd "${TM_SVN:=svn}" "If you have installed svn, then you
need to either update your <tt>PATH</tt> or set the <tt>TM_SVN</tt>
shell variable (e.g. in Preferences / Advanced)"
if [[ -d "$TM_PROJECT_DIRECTORY" ]]
then export WorkPath="$TM_PROJECT_DIRECTORY"
else export WorkPath="$TM_DIRECTORY"
fi
# show it..
"$TM_SVN" status "$WorkPath" 2>&1 \
|"${TM_RUBY:-ruby}" -- "${TM_BUNDLE_SUPPORT}/format_status.rb" "--
status"
I will update to the very latest TM if I need to, but would prefer to
just update the bundle. Can I do this?
Cheers.
--
Luke.
More information about the textmate
mailing list