Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (41 sloc) 1.29 KB
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
<string>#!/usr/bin/env bash
[[ -f "${TM_SUPPORT_PATH}/lib/" ]] &amp;&amp; . "${TM_SUPPORT_PATH}/lib/"
# record a file that we're editing offline for later
# (presumably when access to Perforce is restored)
the_file=`python -c "import sys,os;print os.path.realpath(sys.argv[1])" $TM_FILEPATH`
# first, unlock the file if we need to unlock it
chmod +r "$the_file"
/Developer/Tools/SetFile -a l "$the_file"
# now record the file
mkdir -p "$HOME/.P4Cache"
echo "$the_file" &gt;&gt; "$HOME/P4Cache/OfflineEdits.txt";
<string>Offline Open For Editing</string>
Jump to Line
Something went wrong with that request. Please try again.