status -- the status command: more details and unusual status codes.
log -- the log command: dump commit log information to standard output.
list -- the list command: dump commit summaries to standard output.
+diff -- the diff command: dump revision differences to standard output.
fast-export -- the fast-export command: export history to other systems.
ignores -- .srcignore files and their uses.
""",
With no revision, dumps a log of the entire current branch.
'li' is a synonym for 'list'.
+""",
+ "diff" : """
+src diff ['revision-range'] ['file'...]
+
+Sends a diff listing to standard output. 'di' is a synonym.
+
+With no revision spec, diffs the working copy against the last version
+checked in. With one revno, diffs the working copy against that stored
+revision; with a range, diff between the beginning and end of the
+range.
+
+The actual difference generation is done with diff(1), The default
+diff format is -u, but if you specify options such as -c or -b after
+the verb they will be passed to the command.
""",
"fast-export" : """
src fast-export ['revision-range'] ['file'...]
ctx = CommandContext("diff", args)
if type(args) == type(()):
args = list(args)
- diffopts = "-u"
+ diffopts = ""
while args and args[0].startswith("-"):
diffopts += " " + args.pop(0)
+ if not diffopts:
+ diffopts = "-u"
for arg in ctx.args:
diffspec1 = diffspec2 = ""
if not ctx.is_empty():
"st": status_method,
"cat": cat_method,
"diff": diff_method,
+ "di": diff_method,
"tag": tag_method,
"branch": branch_method,
"ls": ls_method,
Sends a diff listing to standard output. With no revision spec, diffs
the working copy against the last version checked in. With one revno,
diffs the working copy against that stored revision; with a range,
- diff between the beginning and end of the range.
+ diff between the beginning and end of the range. "di" is a synonym
+ for "diff".
src ls::
List all registered files.