Some commands (log, list, diff, fast-export) accept a range or a singleton.
Unless otherwise noted under individual commands, the default revision
-is the tip revision on the current branch and the default range is all
-revisions on the current branch.
+is the tip revision on the current branch.
A good topic to read next would be 'commands'.
""",
The summary line tagged with '*' is the state that the file would
return to on checkout without a revision-spec. See 'help list' for
information about custom formats. Use -l n to omit the listing length.
+ Default range is thec current branch, reversed.
src log [-l n] ['revision-range'] ['file'...]
Sends log information about the specified commits to standard output.
- Use -l n to omit the listing length.
-
+ Use -l n to omit the listing length. Default range is the current branch,
+ reversed.
+
src diff ['revision-range'] ['file'...]
Sends a diff listing to standard output. With no revision spec, diffs
the working copy against the last version checked in. With one revno,
if self.seq is None:
croak("revision spec hasn't been resolved")
return i in self.seq
- def resolve(self, metadata, backwards=True):
+ def resolve(self, metadata):
"Resolve a revision spec that may contain tags into revnos."
if debug >= DEBUG_SEQUENCE:
sys.stderr.write("Entering resolve with start=%s, end=%s\n" % (self.start, self.end))
else:
e = e.parent
if debug >= DEBUG_SEQUENCE:
- sys.stderr.write("selection: %s, branchwise is %s\n" % (self.seq, "on" if self.branchwise else "off"))
+ sys.stderr.write("selection: %s, branchwise is %s\n" % ([x.revno for x in self.seq], "on" if self.branchwise else "off"))
for item in metadata.revlist:
sys.stdout.write("%s\t%s\t%s\n" % (item.revno, item.date, item.native))
# Because in the branchwise case the sequence is generated in reverse
- if backwards != self.branchwise:
+ if self.branchwise:
self.seq.reverse()
# Range might have been reversed
if reversed:
continue
if custom is None:
sys.stdout.write("= %s %s\n" % (arg, ((WIDTH - len(arg) - 3) * "=")))
- for item in ctx.resolve(History(arg), backwards=True):
+ for item in ctx.resolve(History(arg)):
# Must allow enough room for revno and date
if item.selected():
mark = "*"
if ignore(arg) or os.path.isdir(arg) or not registered(arg):
continue
sys.stdout.write("= %s %s\n" % (arg, ((WIDTH - len(arg) - 3) * "=")))
- for item in ctx.resolve(History(arg), backwards=True):
+ for item in ctx.resolve(History(arg)):
sys.stdout.write("%-4d | %s | %s\n%s" \
% (item.revno, item.date, item.branch, item.log))
sys.stdout.write(("-" * WIDTH) + "\n")