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