##// END OF EJS Templates
Add qtip and qbase to mq qlookup.
Brendan Cully -
r2664:9b8df8dc default
parent child Browse files
Show More
@@ -1279,6 +1279,15 b' def reposetup(ui, repo):'
1279 return oldlookup(key)
1279 return oldlookup(key)
1280 except hg.RepoError:
1280 except hg.RepoError:
1281 q = repomap[repo]
1281 q = repomap[repo]
1282
1283 qpatchnames = { 'qtip': -1, 'qbase': 0 }
1284 if key in qpatchnames:
1285 if len(q.applied) == 0:
1286 self.ui.warn('No patches applied\n')
1287 raise
1288 patch = q.applied[qpatchnames[key]].split(':')[0]
1289 return revlog.bin(patch)
1290
1282 patch = q.isapplied(key)
1291 patch = q.isapplied(key)
1283 if not patch:
1292 if not patch:
1284 raise
1293 raise
General Comments 0
You need to be logged in to leave comments. Login now