src tag [delete] ['tagname'] ['revspec']
Create, switch to, or delete a tag. With no arguments, list tags.
+src list ['revision-spec'] ['file'...]
+ Sends summary information about the specified commits to standard output.
+
src log ['revision-spec'] ['file'...]
- Sends log information about the specified files to standard output.
+ Sends log information about the specified commits to standard output.
src diff ['revision-spec'] ['file'...]
Sends a diff listing to standard output
self.log = ""
self.date = None
+def list_method(*args):
+ args = preamble("log", args)
+ width = screenwidth()
+ for arg in args:
+ sys.stdout.write("= %s %s\n" % (arg, ((width - len(arg) - 5) * "=")))
+ for item in log_capture(arg):
+ # Must allow enough room for revno and date
+ summary = item.log.strip()[:width - 32]
+ sys.stdout.write("%-4d %s %s\n" % (item.revno, item.date, summary))
+
def log_method(*args):
args = preamble("log", args)
width = screenwidth()
for arg in args:
sys.stdout.write("= %s %s\n" % (arg, ((width - len(arg) - 5) * "=")))
for item in log_capture(arg):
- sys.stdout.write("%d | %s\n%s" % (item.revno, item.date, item.log))
+ sys.stdout.write("%-4d | %s\n%s" % (item.revno, item.date, item.log))
sys.stdout.write(("-" * (width - 1)) + "\n")
+
dispatch = {
"help": help_method,
"init": init_method,
"add": add_method,
"commit": commit_method,
+ "list": list_method,
"log": log_method,
}
src tag [delete] ['tagname'] ['revspec']
Create, switch to, or delete a tag. With no arguments, list tags.
+src list ['revision-spec'] ['file'...]
+ Sends summary information about the specified commits to standard output.
+
src log ['revision-spec'] ['file'...]
- Sends log information about the specified files to standard output.
+ Sends log information about the specified commits to standard output.
src diff ['revision-spec'] ['file'...]
Sends a diff listing to standard output