[TxMt] Python grammar bugs

Allan Odgaard throw-away-1 at macromates.com
Sun Nov 26 00:38:22 UTC 2006


On 25. Nov 2006, at 15:10, Paul Williamson wrote:

> [...]
> Is there a way to see what version of a bundle is in use, and if  
> there are local modifications in play?

Sort of, yes.

If you do not have a checkout, i.e. use the included bundles, press  
⌃R after this line in TextMate:

     cat "$TM_SUPPORT_PATH/version"

This will give the repository revision number at the time of  
exporting bundles to the build (for r1349 that would be 6194).

If you want to see what has happened with the Python bundle since  
that revision, you can execute:

     svn log -r6194:HEAD http://macromates.com/svn/Bundles/trunk/ 
Bundles/Python.tmbundle

> [...]
> Is there a way to update a bundle to the latest SVN as a one-time  
> thing, so that it will automatically revert to the mainstream when  
> there's a new Cutting Edge or greater release?

Yes, from the shell do:

     # to get proper encoding for svn
     export LC_CTYPE=en_US.UTF-8

     # remove old bundle
     cd /Applications/TextMate.app/Contents/SharedSupport/Bundles
     rm -rf Python.tmbundle

     # export latest version
     svn export http://macromates.com/svn/Bundles/trunk/Bundles/ 
Python.tmbundle

Occasionally the latest bundle will have commands which require  
updates in other part of the support infrastructure (i.e. the shared  
support folder, or the plug-in folder), so if you are only interested  
in the updated language grammar, it might be safer to only update  
that (which is the Syntaxes folder inside the bundle).





More information about the textmate mailing list