equal
deleted
inserted
replaced
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": |