599 repo.recover() |
599 repo.recover() |
600 |
600 |
601 def remove(ui, repo, file, *files): |
601 def remove(ui, repo, file, *files): |
602 """remove the specified files on the next commit""" |
602 """remove the specified files on the next commit""" |
603 repo.remove(relpath(repo, (file,) + files)) |
603 repo.remove(relpath(repo, (file,) + files)) |
|
604 |
|
605 def root(ui, repo): |
|
606 """print the root (top) of the current working dir""" |
|
607 ui.write(repo.root + "\n") |
604 |
608 |
605 def serve(ui, repo, **opts): |
609 def serve(ui, repo, **opts): |
606 """export the repository via HTTP""" |
610 """export the repository via HTTP""" |
607 hgweb.server(repo.root, opts["name"], opts["templates"], |
611 hgweb.server(repo.root, opts["name"], opts["templates"], |
608 opts["address"], opts["port"]) |
612 opts["address"], opts["port"]) |
746 ('t', 'text', "", 'commit text'), |
750 ('t', 'text', "", 'commit text'), |
747 ('l', 'logfile', "", 'commit text file')], |
751 ('l', 'logfile', "", 'commit text file')], |
748 'hg rawcommit [options] [files]'), |
752 'hg rawcommit [options] [files]'), |
749 "recover": (recover, [], "hg recover"), |
753 "recover": (recover, [], "hg recover"), |
750 "remove|rm": (remove, [], "hg remove [files]"), |
754 "remove|rm": (remove, [], "hg remove [files]"), |
|
755 "root": (root, [], "hg root"), |
751 "serve": (serve, [('p', 'port', 8000, 'listen port'), |
756 "serve": (serve, [('p', 'port', 8000, 'listen port'), |
752 ('a', 'address', '', 'interface address'), |
757 ('a', 'address', '', 'interface address'), |
753 ('n', 'name', os.getcwd(), 'repository name'), |
758 ('n', 'name', os.getcwd(), 'repository name'), |
754 ('t', 'templates', "", 'template map')], |
759 ('t', 'templates', "", 'template map')], |
755 "hg serve [options]"), |
760 "hg serve [options]"), |