]> thyrsus.com Git - src.git/commitdiff
src ls removed, it's redundant with src status -a.
authorEric S. Raymond <esr@thyrsus.com>
Sun, 16 Nov 2014 07:00:04 +0000 (02:00 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Sun, 16 Nov 2014 07:00:04 +0000 (02:00 -0500)
src
src.asc

diff --git a/src b/src
index 8a85c35970626efa3c443d4c70560252f38e80f6..2e7661d998b97e6657330479613d74c66551fb51 100755 (executable)
--- 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 f8f02548499701d62d3dbba52ab3f3e2a89464e6..976db67034b16d644a7ebeccd91e970d79ed436d 100644 (file)
--- 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.