diffs the working copy against that stored revision; with a range,
diff between the beginning and end of the range.
+src ls
+ List all registered files.
+
src move 'old' 'new'
Rename a workfile and its history. Refuses to step on existing
workfiles or histories. 'mv' and 'rename' are synonyms.
with backend.lifter(arg):
backend.release(arg)
+def ls_method(*args):
+ "List registered files."
+ if args:
+ croak("ls cannot accept arguments")
+ try:
+ masters = os.listdir(repodir)
+ except OSError:
+ croak("repo directory %s does not exist" % repodir)
+ masters.sort()
+ for master in masters:
+ sys.stdout.write(backend.workfile(master) + "\n")
+
def fast_export_method(*args):
"Dump revision content to standard output."
ctx = CommandContext("fast-export", args)
"di": diff_method,
"tag": tag_method,
"branch": branch_method,
+ "ls": ls_method,
"move": move_method,
"mv": move_method,
"rename": move_method,
diff between the beginning and end of the range. "di" is a synonym
for "diff".
-src move 'old' 'new'::
+src ls::
+ List all registered files.
+
+src rename 'old' 'new'::
Rename a workfile and its history. Refuses to step on existing
workfiles or histories. 'mv' and 'rename' are synonyms.