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.
Any clues as to what I am doing wrong or is this how it works now?
Cheers,
LDaley.
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
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.
On 30/6/2006, at 1:09, Luke Daley wrote:
[...] I will update to the very latest TM if I need to, but would prefer to just update the bundle. Can I do this?
Start by removing ~/Library/Application Support/TextMate/Bundles/ Subversion.tmbundle (unless you have local changes you want to keep) -- at least that will ensure that you have the default version.
On 30/06/2006, at 10:47 AM, Allan Odgaard wrote:
Start by removing ~/Library/Application Support/TextMate/Bundles/ Subversion.tmbundle (unless you have local changes you want to keep) -- at least that will ensure that you have the default version.
Thanks Allan and Chris. It works now.
- LDaley.