AccuRev® Command-Line Reference : touch

touch
update the timestamp of a file
Usage
accurev touch [ -R ] [ -t <time-spec> ] <file-list>
Description
The touch command updates the time-last-modified timestamp on one or more files in your workspace. To set the timestamps, it uses the system clock on your host (the client computer) or the time you specify with -t.
Note: touch does not affect the depot at all, just the specified file(s) in your workspace.
Typically, you should use touch on files that you copy into the workspace from another location — your home directory, a remote FTP site, etc. Some applications update the timestamps on the files they copy; others don’t.
Options
-R
For each directory in <file-list>, process all the files in its subdirectory tree.
-t <time-spec>
A time, in <YYYY/MM/DD HH:MM:SS> format (for example, 2007/08/07 20:27:15) or the keyword now.
When using the –t option, take into account the possibility of a timewarp. The AC_SYNC environment variable (see AccuRev User Preferences on page 6) determines how a timewarp will be handled. See also section System Clock Synchronization on page 29 of the AccuRev Administrator’s Guide.
Examples
Update the timestamps of two files:
> accurev touch test/rebase.sh doc/rebase.doc
Update the timestamps of all files in two subdirectories:
> accurev touch -R src lib
See Also
add, keep, stat
Techniques for Selecting Elements on page 13

AccuRev, Inc.
Phone: 781-861-8700
Fax: 781-861-8704
support@accurev.com