diff -r 410373162036 -r ae96b7e1318d mercurial/commands.py --- a/mercurial/commands.py Wed Jun 15 15:50:28 2005 -0800 +++ b/mercurial/commands.py Wed Jun 15 15:57:07 2005 -0800 @@ -250,6 +250,10 @@ addremove(ui, repo, *files) repo.commit(relpath(repo, files), text, opts['user'], opts['date']) +def copy(ui, repo, source, dest): + """mark a file as copied or renamed for the next commit""" + return repo.copy(*relpath(repo, (source, dest))) + def debugaddchangegroup(ui, repo): data = sys.stdin.read() repo.addchangegroup(data) @@ -608,6 +612,7 @@ ('d', 'date', "", 'data'), ('u', 'user', "", 'user')], 'hg commit [files]'), + "copy": (copy, [], 'hg copy '), "debugaddchangegroup": (debugaddchangegroup, [], 'debugaddchangegroup'), "debugchangegroup": (debugchangegroup, [], 'debugchangegroup [roots]'), "debugindex": (debugindex, [], 'debugindex '),