hgext/mq.py
changeset 2664 9b8df8dceeed
parent 2663 96950d39171d
child 2677 ec05ce9cbf47
equal deleted inserted replaced
2663:96950d39171d 2664:9b8df8dceeed
  1277     def qlookup(key):
  1277     def qlookup(key):
  1278         try:
  1278         try:
  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
  1285             return revlog.bin(patch[1])
  1294             return revlog.bin(patch[1])
  1286 
  1295