hg
changeset 219 8ff4532376a4
parent 213 d2172916ef6c
child 220 3113a94c1bff
equal deleted inserted replaced
218:06bc1ef248a6 219:8ff4532376a4
   126     sys.exit(0)
   126     sys.exit(0)
   127 
   127 
   128 relpath = None
   128 relpath = None
   129 if os.getcwd() != repo.root:
   129 if os.getcwd() != repo.root:
   130     relpath = os.getcwd()[len(repo.root) + 1: ]
   130     relpath = os.getcwd()[len(repo.root) + 1: ]
   131 
       
   132 if cmd == "checkout" or cmd == "co":
       
   133     node = repo.changelog.tip()
       
   134     if args:
       
   135         node = repo.lookup(args[0])
       
   136     repo.checkout(node)
       
   137 
   131 
   138 elif cmd == "add":
   132 elif cmd == "add":
   139     repo.add(args)
   133     repo.add(args)
   140 
   134 
   141 elif cmd == "remove" or cmd == "rm" or cmd == "del" or cmd == "delete":
   135 elif cmd == "remove" or cmd == "rm" or cmd == "del" or cmd == "delete":