Show More
@@ -1272,6 +1272,19 b' def version(ui, q=None):' | |||
|
1272 | 1272 | |
|
1273 | 1273 | def reposetup(ui, repo): |
|
1274 | 1274 | repomap[repo] = queue(ui, repo.join("")) |
|
1275 | oldlookup = repo.lookup | |
|
1276 | ||
|
1277 | def qlookup(key): | |
|
1278 | try: | |
|
1279 | return oldlookup(key) | |
|
1280 | except hg.RepoError: | |
|
1281 | q = repomap[repo] | |
|
1282 | patch = q.isapplied(key) | |
|
1283 | if not patch: | |
|
1284 | raise | |
|
1285 | return revlog.bin(patch[1]) | |
|
1286 | ||
|
1287 | repo.lookup = qlookup | |
|
1275 | 1288 | |
|
1276 | 1289 | cmdtable = { |
|
1277 | 1290 | "qapplied": (applied, [], 'hg qapplied [PATCH]'), |
General Comments 0
You need to be logged in to leave comments.
Login now