Show More
@@ -44,7 +44,12 b' else:' | |||||
44 |
|
44 | |||
45 | if cmd == "checkout" or cmd == "co": |
|
45 | if cmd == "checkout" or cmd == "co": | |
46 | node = repo.changelog.tip() |
|
46 | node = repo.changelog.tip() | |
47 |
if len(args): |
|
47 | if len(args): | |
|
48 | if len(args[0]) < 40: | |||
|
49 | rev = int(args[0]) | |||
|
50 | node = repo.changelog.node(rev) | |||
|
51 | else: | |||
|
52 | node = args[0] | |||
48 | repo.checkout(node) |
|
53 | repo.checkout(node) | |
49 |
|
54 | |||
50 | elif cmd == "add": |
|
55 | elif cmd == "add": | |
@@ -123,7 +128,7 b' elif cmd == "history":' | |||||
123 | print "manifest: %4d:%s" % (repo.manifest.rev(changes[0]), |
|
128 | print "manifest: %4d:%s" % (repo.manifest.rev(changes[0]), | |
124 | hg.hex(changes[0])) |
|
129 | hg.hex(changes[0])) | |
125 | print "user:", changes[1] |
|
130 | print "user:", changes[1] | |
126 |
print "files:", |
|
131 | print "files:", " ".join(changes[3]) | |
127 | print "description:" |
|
132 | print "description:" | |
128 | print changes[4] |
|
133 | print changes[4] | |
129 |
|
134 | |||
@@ -218,8 +223,8 b' elif cmd == "verify":' | |||||
218 | if n not in filenodes[f]: |
|
223 | if n not in filenodes[f]: | |
219 | print "%s:%s not in manifests" % (f, hg.hex(n)) |
|
224 | print "%s:%s not in manifests" % (f, hg.hex(n)) | |
220 | if fl.linkrev(n) not in filelinkrevs[f]: |
|
225 | if fl.linkrev(n) not in filelinkrevs[f]: | |
221 |
print "%s:%s points to un |
|
226 | print "%s:%s points to unexpected changeset rev %d" \ | |
222 |
% (f, hg.hex(n), |
|
227 | % (f, hg.hex(n), fl.linkrev(n)) | |
223 | t = fl.read(n) |
|
228 | t = fl.read(n) | |
224 | (p1, p2) = fl.parents(n) |
|
229 | (p1, p2) = fl.parents(n) | |
225 | if p1 not in nodes: |
|
230 | if p1 not in nodes: |
General Comments 0
You need to be logged in to leave comments.
Login now