equal
deleted
inserted
replaced
128 ui.write(description + "\n") |
128 ui.write(description + "\n") |
129 if prefix: |
129 if prefix: |
130 ui.write('\0') |
130 ui.write('\0') |
131 |
131 |
132 def base(ui, repo, node1, node2): |
132 def base(ui, repo, node1, node2): |
133 """Output common ancestor information""" |
133 """output common ancestor information""" |
134 node1 = repo.lookup(node1) |
134 node1 = repo.lookup(node1) |
135 node2 = repo.lookup(node2) |
135 node2 = repo.lookup(node2) |
136 n = repo.changelog.ancestor(node1, node2) |
136 n = repo.changelog.ancestor(node1, node2) |
137 ui.write(short(n) + "\n") |
137 ui.write(short(n) + "\n") |
138 |
138 |
280 if maxnr and count >= maxnr: |
280 if maxnr and count >= maxnr: |
281 break |
281 break |
282 count += 1 |
282 count += 1 |
283 |
283 |
284 def revparse(ui, repo, *revs, **opts): |
284 def revparse(ui, repo, *revs, **opts): |
285 """Parse given revisions""" |
285 """parse given revisions""" |
286 def revstr(rev): |
286 def revstr(rev): |
287 if rev == 'HEAD': |
287 if rev == 'HEAD': |
288 rev = 'tip' |
288 rev = 'tip' |
289 return revlog.hex(repo.lookup(rev)) |
289 return revlog.hex(repo.lookup(rev)) |
290 |
290 |