##// END OF EJS Templates
fixes #449 bad regex could get more than revisions from parsing history
marcink -
r2274:34eb00bd beta
parent child Browse files
Show More
@@ -30,6 +30,7 b' fixes'
30 - fixed no scm found warning
30 - fixed no scm found warning
31 - fixed __future__ import error on rcextensions
31 - fixed __future__ import error on rcextensions
32 - made simplejson required lib for speedup on JSON encoding
32 - made simplejson required lib for speedup on JSON encoding
33 - fixes #449 bad regex could get more than revisions from parsing history
33
34
34 1.3.5 (**2012-05-10**)
35 1.3.5 (**2012-05-10**)
35 ----------------------
36 ----------------------
@@ -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--" --name-status -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'(?:--)(\w{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