Return the latest modification time for a folder subtree
Purpose
The scm lastmod subcommand
returns the date of the most recent modification to one or more directories
in a local workspace.
Synopsis
- To run scm lastmod after you have used scm
login to create stored credentials for the repository linked
to local workspace specified by -d:
scm lastmod [ -d | --dir ] workspace-path { [ -f | --format ] format specifier } path ...
- To run scm lastmod and supply credentials
(for the repository linked to local workspace specified by -d)
on the command line:
scm lastmod [ -d | --dir ] workspace-path [ -u | --username ] user ID in repository [ -P | --password ] password for user ID in repository [ -d | --dir ] workspace-path { [ -f | --format ] format specifier } path ...
Options and arguments
- [ -d | --dir ] workspace-path
- The path name of a local workspace created
by scm load or scm share.
This subcommand runs with workspace-path set as
the current working directory. You can omit this option if the current
working directory is in a local workspace.
- [ -f | --format ] format
specifier
- A date formatter used to format the return date. The default is yyyyMMddmm (for
example, 200801011131 represents 11:31 AM, January 1, 2008). You can
specify any format supported by the Java™ SimpleDateFormat
class. For more information, see http://java.sun.com/j2se/1.5.0/docs/api/java/text/SimpleDateFormat.html.
- [ -P | --password ] password for user ID in repository
- The password for the specified user ID in
the named repository. If this option is not included on the command
line, you are prompted for a password. If you specified a repository
URI or nickname for which you have stored credentials using the scm
login command, this option is ignored.
- [ -u | --username ] user ID in repository
- Specifies a user ID that exists in the named
repository. If you specified a repository URI or nickname for which
you have stored credentials using the scm login command,
this option is ignored.
- path ...
- A space-separated list of path names to report on.
Examples
Working in a local workspace, show
the most recent modification time for each project in the workspace.
C:\local-workspaces\HelloJazz>scm lastmod .
\com.example.hellojazz.client=200806020210
\com.example.hellojazz.service=200806020210
\com.example.hellojazz.rcp.ui=200806020210
\com.example.hellojazz.client.tests=200806020210
\com.example.hellojazz.common=200806020210
Show the same information, but with
formatted dates.
C:\local-workspaces\HelloJazz>scm lastmod . -f "EEE, d MMM yyyy HH:mm:ss Z"
\com.example.hellojazz.client=Mon, 2 Jun 2008 14:10:16 -0400
\com.example.hellojazz.service=Mon, 2 Jun 2008 14:10:16 -0400
\com.example.hellojazz.rcp.ui=Mon, 2 Jun 2008 14:10:16 -0400
\com.example.hellojazz.client.tests=Mon, 2 Jun 2008 14:10:16 -0400
\com.example.hellojazz.common=Mon, 2 Jun 2008 14:10:16 -0400