From 89d891b1c841d6b02c274d89015558e1a2846cb9 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 16 Nov 2014 02:00:04 -0500 Subject: [PATCH] src ls removed, it's redundant with src status -a. --- src | 16 ---------------- src.asc | 5 +---- 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/src b/src index 8a85c35..2e7661d 100755 --- a/src +++ b/src @@ -390,9 +390,6 @@ src diff ['revision-range'] ['file'...] 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. @@ -1236,18 +1233,6 @@ def release_method(*args): 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) @@ -1348,7 +1333,6 @@ dispatch = { "di": diff_method, "tag": tag_method, "branch": branch_method, - "ls": ls_method, "move": move_method, "mv": move_method, "rename": move_method, diff --git a/src.asc b/src.asc index f8f0254..976db67 100644 --- a/src.asc +++ b/src.asc @@ -103,10 +103,7 @@ src diff ['revision-range'] ['file'...]:: diff between the beginning and end of the range. "di" is a synonym for "diff". -src ls:: - List all registered files. - -src rename 'old' 'new':: +src move 'old' 'new':: Rename a workfile and its history. Refuses to step on existing workfiles or histories. 'mv' and 'rename' are synonyms. -- 2.43.0