Find file
Fetching contributors…
Cannot retrieve contributors at this time
55 lines (49 sloc) 1.51 KB
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>#!/usr/bin/env bash
[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] &amp;&amp; . "${TM_SUPPORT_PATH}/lib/bash_init.sh"
labels=`"${TM_P4:=p4}" labels | cut -d " " -f 2`
#echo $labels
difflabels=`osascript&lt;&lt;END
set AppleScript's text item delimiters to {"\n", "\r"}
tell app "SystemUIServer" to activate
tell app "SystemUIServer" to choose from list (every text item of "$labels") with prompt "Please
choose two labels:" with multiple selections allowed
END`
#echo $difflabels
IFS=", "
difflabels=( $difflabels )
#echo "0:" ${difflabels[0]}
#echo "1:" ${difflabels[1]}
ruby18 -I "$TM_BUNDLE_SUPPORT/lib/"&lt;&lt;END
require 'p4_diff'
Perforce::diff_files_in_revisions("@${difflabels[0]}", "@${difflabels[1]}", "Perforce—Diff Labels…")
END
</string>
<key>input</key>
<string>none</string>
<key>inputFormat</key>
<string>text</string>
<key>keyEquivalent</key>
<string>^F</string>
<key>name</key>
<string>Diff Labels…</string>
<key>outputCaret</key>
<string>afterOutput</string>
<key>outputFormat</key>
<string>text</string>
<key>outputLocation</key>
<string>newWindow</string>
<key>scope</key>
<string>attr.scm.p4</string>
<key>uuid</key>
<string>556314B2-B3BF-11D9-9B1F-000A95A89C98</string>
<key>version</key>
<integer>2</integer>
</dict>
</plist>