hgext/convert/p4.py
branchstable
changeset 25745 501c51d60792
parent 24395 216fa1ba9993
child 25760 648323f41a89
equal deleted inserted replaced
25715:97fd07e38b83 25745:501c51d60792
   162 
   162 
   163             if code == "error":
   163             if code == "error":
   164                 raise IOError(d["generic"], data)
   164                 raise IOError(d["generic"], data)
   165 
   165 
   166             elif code == "stat":
   166             elif code == "stat":
   167                 if d.get("action") == "purge":
   167                 action = d.get("action")
       
   168                 if action in ["purge", "delete", "move/delete"]:
   168                     return None, None
   169                     return None, None
   169                 p4type = self.re_type.match(d["type"])
   170                 p4type = self.re_type.match(d["type"])
   170                 if p4type:
   171                 if p4type:
   171                     mode = ""
   172                     mode = ""
   172                     flags = (p4type.group(1) or "") + (p4type.group(3) or "")
   173                     flags = (p4type.group(1) or "") + (p4type.group(3) or "")