[TxMt] Mercurial bundle

Fred B. fredb7 at starflam.com
Wed May 3 18:28:49 UTC 2006


On 03 May 2006, at 17:31, Brad Miller wrote:

> Fred,
>
> I've been trying out mercurial.  I had to modify the log command  
> and remove the single quotes around the HG_STYLE directory in the  
> eval lines, otherwise I get an error message that the map- 
> cmdline.changelog file is not found.
>
> I'm not sure why but removing the single quotes fixes the problem.
>

I'll need the help of some escaping guru fot this one.

I added those weird single quotes to the double quotes "'HG_STYLE'"  
because if I don't I get "abort: No such file or directory - /Library/ 
Application" which means the path is note quoted.

It's not working for me without the quotes and it's not working for  
you with the quotes.

Heeelp. ;)

Here is the command:

: ${TM_RUBY:=ruby}
FORMAT_LOG="${TM_BUNDLE_SUPPORT}/format_log.rb"
HG_STYLE="${TM_BUNDLE_SUPPORT}/map-cmdline.changelog"

if [[ $TM_HG_LOG_LIMIT != 0 ]]
	then HG_LIMIT="-l ${TM_HG_LOG_LIMIT:=10}"
fi

if [[ -z $TM_SELECTED_FILES ]]; then
    "$TM_HG" log -v $HG_LIMIT --style "$HG_STYLE" "$TM_FILEPATH" 2>&1  
|"$TM_RUBY" -- "$FORMAT_LOG"
else
    eval "$TM_HG" log -v $HG_LIMIT --style "'$HG_STYLE'"  
$TM_SELECTED_FILES 2>&1 |"$TM_RUBY" -- "$FORMAT_LOG"
fi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20060503/58a57ab9/attachment.html>


More information about the textmate mailing list