# Unshelve ``if
true
if
[ $SHELVED_CHANGELIST !=
;`""
] ; then ( echo
"User specified a shelved changelist, unshelving changelist ($SHELVED_CHANGELIST)"`
p4 unshelve -f -s $SHELVED_CHANGELIST ${sourceCodePath};
)
else
(
echo
"Not running with a shelved changelist"
; ); fi
Now revert unshelve but KEEP the files locally
p4 revert -k ${sourceCodePath}