]> thyrsus.com Git - src.git/commitdiff
Remove debris.
authorEric S. Raymond <esr@thyrsus.com>
Sat, 8 Nov 2014 21:08:06 +0000 (16:08 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Sat, 8 Nov 2014 21:08:06 +0000 (16:08 -0500)
src
src.asc

diff --git a/src b/src
index cd8f259ac2222aa36d6a3fe6bea46c0902af52f1..27f396a8b7a6e7b08e85ac0c18ebae8c0f328675 100755 (executable)
--- a/src
+++ b/src
@@ -675,37 +675,6 @@ def fast_export_method(*args):
                 if val in revrange:
                     sys.stdout.write("reset refs/tags/%s\nfrom :%d\n\n" % (key, markmap[val]))
 
-def dircmd(legend, hook, args):
-    (revspec, args) = preamble(legend, args)
-    if revspec is not None:
-        croak("%s doesn't take a revision spec" % legend)
-    if args:
-        target = args.pop(0)
-    else:
-        croak("%s requires a directory argument" % legend)
-    if not os.path.exists(target):
-        croak("%s does not exist" % arg)
-    if not os.path.isdir(target):
-        croak("%s is not a directory" % arg)
-    init_method(target)
-    for arg in args:
-       if not os.path.exists(arg):
-           croak("I see no '%s' here." % arg)
-       elif not os.path.exists(backend.master(arg)):
-           croak("%s is not registered, skipping." % arg)
-       else:
-           hook(arg, target)
-           if not quiet and len(args) > 1:
-              announce("%s -> %s" % target)
-
-def moveto_method(*args):
-    "Move a file and its history to another directory."
-    dircmd("moveto", backend.moveto, args)
-
-def copyto_method(*args):
-    "Copy a file and its history to another directory."
-    dircmd("copyto", backend.copyto, args)
-
 def filecmd(legend, hook, args):
     (revspec, args) = preamble(legend, args)
     if revspec is not None:
@@ -759,8 +728,6 @@ dispatch = {
     "tag":         tag_method,
     "branch":      branch_method,
     "fast-export": fast_export_method,
-    "moveto":      moveto_method,
-    "copyto":      copyto_method,
     "ls":          ls_method,
     "move":        move_method,
     "mv":          move_method,
diff --git a/src.asc b/src.asc
index 0cf1d23860906318ba98a9997c582d95cbc68394..9463fc1c9e6197fe6882ce627b2d6159c45b2810 100644 (file)
--- a/src.asc
+++ b/src.asc
@@ -94,12 +94,6 @@ src copy 'old' 'new'::
    Rename a file and its master. Refuses to step on existing files or masters.
    'cp' is a synonym.
 
-src moveto 'directory' ['file'...]::
-   Moves files and their histories to another directory.
-
-src copyto 'directory' ['file'...]::
-   Copies files and their histories to another directory.
-
 src fast-export ['file'...]::
    Export one or more projects as a git fast-import stream.
    The committer identification is copied from your Git configuration.