hg
changeset 213 d2172916ef6c
parent 210 d2badbd7d1ad
child 219 8ff4532376a4
--- a/hg	Wed Jun 01 11:11:19 2005 -0800
+++ b/hg	Wed Jun 01 11:48:34 2005 -0800
@@ -119,21 +119,11 @@
 ui = ui.ui(options["verbose"], options["debug"], options["quiet"],
            not options["noninteractive"])
     
-if cmd == "init":
-    repo = hg.repository(ui, ".", create=1)
-    sys.exit(0)
-elif cmd == "branch" or cmd == "clone":
-    os.system("cp -al %s/.hg .hg" % args[0])
+try:
+    repo = hg.repository(ui=ui)
+except IOError:
+    ui.warn("Unable to open repository\n")
     sys.exit(0)
-elif cmd == "help":
-    help()
-    sys.exit(0)
-else:
-    try:
-        repo = hg.repository(ui=ui)
-    except IOError:
-        ui.warn("Unable to open repository\n")
-        sys.exit(0)
 
 relpath = None
 if os.getcwd() != repo.root:
@@ -221,15 +211,6 @@
                 raise "patch failed!"
         repo.commit(repo.current, files, text)
 
-elif cmd == "status":
-    (c, a, d) = repo.diffdir(repo.root, repo.current)
-    if relpath:
-        (c, a, d) = map(lambda x: filterfiles(x, [ relpath ]), (c, a, d))
-
-    for f in c: print "C", f
-    for f in a: print "?", f
-    for f in d: print "R", f
-
 elif cmd == "diff":
     revs = []