The files command lists the AccuRev status of files and directories in a workspace or reference tree.
The various status flags — (backed),
(kept), etc. — are the same as those displayed by the
stat command.
By default, files uses a
timestamp optimization to speed its search for files that have been modified in your workspace: it does not consider files whose timestamps have not changed since the last time the workspace was updated or searched for modified files.
It is possible for your workspace to get new files with old timestamps: certain file-copy and file-archive utilities can preserve timestamps; the AccuRev commands
co,
pop,
purge,
revert, and
update preserve timestamps when copying versions into the workspace if the environment variable
ACCUREV_USE_MOD_TIME is set. In such situations, the timestamp optimization causes
files to silently ignore relevant files. Use the
-O option to have
files dispense with the optimization and consider all files, regardless of timestamp, in its search for modified files.
That’s because the element itself is still active in your workspace stream. (You can think of it as actively being changed from present to absent.) The element continues to be listed by
files, with the
(defunct) status flag, until you
promote it or
purge it. Promoting the defunct element removes it from the workspace stream, and thus from
files listings; purging the element effectively undoes the
defunct command, returning the element to
(backed) status.
Similarly, if you remove a file or directory element from your workspace tree with an operating system command (such as del or
rm), the
files command continues to “see” it. That’s because the operating system command doesn’t modify the AccuRev element itself. The status of a deleted element in your workspace is
(missing).
Note: The
stat and
files commands do not include defuncted elements when listing the contents of the parent directory. The operating system’s “list directory” command doesn’t see the defuncted element, because
defunct removes the file or directory from the workspace tree.
Note: You can combine the
x letter with either
i or
I (
-fxi, for example), but the
i and
I letters are mutually exclusive (
-fiI is invalid, for example).
If you use -s to display the status of elements in a non-workspace stream, then each relative pathname in
<element-list> is interpreted relative to the depot’s top-level directory. Typically, a simple filename like
base.h won’t be valid; instead, use a pathname like
src/include/base.h. Alternatively, use a full
depot-relative pathname, like
/./src/include/base.h.
> accurev files
\.\tools\perl\findtags.pl brass2\1 (2\1) (modified)
\.\tools\perl\reporter.pl brass2_john\2 (2\2) (kept) (member)
\.\tools\perl\mail.1 (external)
\.\tools\perl\mail.2 (external)
> accurev files doc
.\doc\chap01.doc brass2_dvt\1 (2\2) (backed)
.\doc\chap02.doc brass2_john\2 (2\2) (kept) (member)
.\doc\chap03.doc brass2\1 (2\1) (backed)
.\doc\chap04.doc brass2\1 (2\1) (backed)