[TxMt] SVN Status on project subfolder.
Chris Thomas
chris at cjack.com
Thu Jun 29 15:15:37 UTC 2006
On Jun 29, 2006, at 2:48 AM, Luke Daley wrote:
> Hi everyone,
>
> What I want to do is have some of the SVN commands (not CVS, sorry
> couldn't resist) operate on the selected directory in the project
> drawer. It seems that some do and some don't. Quite possibly I am
> just not doing something right to make it happen aswell.
>
> SVN status is the command that springs to mind, despite my best
> efforts, it always operates on the whole project. From memory, the
> previous version I had (I currently have 1.5.1 (1100) and I only
> use official releases) allowed me to do this by selecting the
> desired directory in the project drawer and making sure the drawer
> had focus.
This works with the latest from Subversion, but it should have worked
IIRC in 1.5.1 as well -- I don't think there was a point in time
where the state of things was that weird -- but I could be wrong. 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
Chris
More information about the textmate
mailing list