hgext/mq.py
changeset 2300 52b9b6751b2c
parent 2299 dacf718e1d48
child 2301 7c2623aedeb4
equal deleted inserted replaced
2299:dacf718e1d48 2300:52b9b6751b2c
   118                 continue
   118                 continue
   119             elif format == "hgpatch":
   119             elif format == "hgpatch":
   120                 # parse values when importing the result of an hg export
   120                 # parse values when importing the result of an hg export
   121                 if line.startswith("# User "):
   121                 if line.startswith("# User "):
   122                     user = line[7:]
   122                     user = line[7:]
   123                 elif line.startswith("# Timestamp "):
   123                 elif line.startswith("# Date "):
   124                     date = line[12:]
   124                     date = line[7:]
   125                 elif not line.startswith("# ") and line:
   125                 elif not line.startswith("# ") and line:
   126                     message.append(line)
   126                     message.append(line)
   127                     format = None
   127                     format = None
   128             elif line == '# HG changeset patch':
   128             elif line == '# HG changeset patch':
   129                 format = "hgpatch"
   129                 format = "hgpatch"