aboutsummaryrefslogtreecommitdiff
path: root/rhodecode/lib/vcs/backends/git/changeset.py
diff options
context:
space:
mode:
authorMarcin Kuzminski <marcin@python-works.com>2012-05-16 00:37:50 +0200
committerMarcin Kuzminski <marcin@python-works.com>2012-05-16 00:37:50 +0200
commit10fbdeb5ec823a74cb53965c91797364baa0c95f (patch)
tree32e9cad2043b3a31db66fe2ffa35e46ca80454c6 /rhodecode/lib/vcs/backends/git/changeset.py
parent1b0f7a440c977654a464199da57046ab0409469b (diff)
better regex for history
--HG-- branch : beta
Diffstat (limited to 'rhodecode/lib/vcs/backends/git/changeset.py')
-rw-r--r--rhodecode/lib/vcs/backends/git/changeset.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rhodecode/lib/vcs/backends/git/changeset.py b/rhodecode/lib/vcs/backends/git/changeset.py
index 2480a85c..c7b1ce11 100644
--- a/rhodecode/lib/vcs/backends/git/changeset.py
+++ b/rhodecode/lib/vcs/backends/git/changeset.py
@@ -240,11 +240,11 @@ class GitChangeset(BaseChangeset):
which is generally not good. Should be replaced with algorithm
iterating commits.
"""
- cmd = 'log --pretty="format: --%%H--" --name-status -p %s -- "%s"' % (
+ cmd = 'log --pretty="format: %%H" -s -p %s -- "%s"' % (
self.id, path
)
so, se = self.repository.run_git_command(cmd)
- ids = re.findall(r'(?:--)(\w{40})(?:--)', so)
+ ids = re.findall(r'[0-9a-fA-F]{40}', so)
return [self.repository.get_changeset(id) for id in ids]
def get_file_annotate(self, path):