From d560304aa884bbf1a1ce84bee92e8cb967ea5a4d Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 8 Nov 2014 16:08:06 -0500 Subject: [PATCH] Remove debris. --- src | 33 --------------------------------- src.asc | 6 ------ 2 files changed, 39 deletions(-) diff --git a/src b/src index cd8f259..27f396a 100755 --- 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 0cf1d23..9463fc1 100644 --- 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. -- 2.43.0