##// END OF EJS Templates
extract: parse 'date' using the generic mechanism...
Pierre-Yves David -
r26558:fe52cd04 default
parent child Browse files
Show More
@@ -153,7 +153,7 b' def split(stream):'
153
153
154 ## Some facility for extensible patch parsing:
154 ## Some facility for extensible patch parsing:
155 # list of pairs ("header to match", "data key")
155 # list of pairs ("header to match", "data key")
156 patchheadermap = []
156 patchheadermap = [('Date', 'date')]
157
157
158 def extract(ui, fileobj):
158 def extract(ui, fileobj):
159 '''extract patch from data read from fileobj.
159 '''extract patch from data read from fileobj.
@@ -234,8 +234,6 b' def extract(ui, fileobj):'
234 if line.startswith('# User '):
234 if line.startswith('# User '):
235 data['user'] = line[7:]
235 data['user'] = line[7:]
236 ui.debug('From: %s\n' % data['user'])
236 ui.debug('From: %s\n' % data['user'])
237 elif line.startswith("# Date "):
238 data['date'] = line[7:]
239 elif line.startswith("# Branch "):
237 elif line.startswith("# Branch "):
240 data['branch'] = line[9:]
238 data['branch'] = line[9:]
241 elif line.startswith("# Node ID "):
239 elif line.startswith("# Node ID "):
General Comments 0
You need to be logged in to leave comments. Login now