##// END OF EJS Templates
better regex for history
marcink -
r2276:8caaa995 beta
parent child Browse files
Show More
@@ -240,11 +240,11 b' class GitChangeset(BaseChangeset):'
240 which is generally not good. Should be replaced with algorithm
240 which is generally not good. Should be replaced with algorithm
241 iterating commits.
241 iterating commits.
242 """
242 """
243 cmd = 'log --pretty="format: --%%H--" --name-status -p %s -- "%s"' % (
243 cmd = 'log --pretty="format: %%H" -s -p %s -- "%s"' % (
244 self.id, path
244 self.id, path
245 )
245 )
246 so, se = self.repository.run_git_command(cmd)
246 so, se = self.repository.run_git_command(cmd)
247 ids = re.findall(r'(?:--)(\w{40})(?:--)', so)
247 ids = re.findall(r'[0-9a-fA-F]{40}', so)
248 return [self.repository.get_changeset(id) for id in ids]
248 return [self.repository.get_changeset(id) for id in ids]
249
249
250 def get_file_annotate(self, path):
250 def get_file_annotate(self, path):
General Comments 0
You need to be logged in to leave comments. Login now