##// END OF EJS Templates
Git fixes...
marcink -
r2047:092080cd beta
parent child Browse files
Show More
@@ -4,7 +4,7 b' Changelog'
4 4 =========
5 5
6 6
7 1.3.1 (**2012-XX-XX**)
7 1.3.2 (**2012-XX-XX**)
8 8 ----------------------
9 9
10 10 :status: in-progress
@@ -18,6 +18,20 b' fixes'
18 18 +++++
19 19
20 20
21 1.3.1 (**2012-02-27**)
22 ----------------------
23
24 news
25 ++++
26
27
28 fixes
29 +++++
30
31 - redirection loop occurs when remember-me wasn't checked during login
32 - fixes issues with git blob history generation
33 - don't fetch branch for git in file history dropdown. Causes unneeded slowness
34
21 35 1.3.0 (**2012-02-26**)
22 36 ----------------------
23 37
@@ -246,8 +246,9 b' class GitChangeset(BaseChangeset):'
246 246 which is generally not good. Should be replaced with algorithm
247 247 iterating commits.
248 248 """
249 cmd = 'log --name-status -p %s -- "%s" | grep "^commit"' \
250 % (self.id, path)
249 cmd = 'log --pretty="format: %%H" --name-status -p %s -- "%s"' % (
250 '', path
251 )
251 252 so, se = self.repository.run_git_command(cmd)
252 253 ids = re.findall(r'\w{40}', so)
253 254 return [self.repository.get_changeset(id) for id in ids]
@@ -242,8 +242,7 b' class GitRepository(BaseRepository):'
242 242 sortkey = lambda ctx: ctx[0]
243 243 _branches = [('/'.join(ref.split('/')[2:]), head)
244 244 for ref, head in refs.items()
245 if ref.startswith('refs/heads/') or
246 ref.startswith('refs/remotes/') and not ref.endswith('/HEAD')]
245 if ref.startswith('refs/heads/') and not ref.endswith('/HEAD')]
247 246 return OrderedDict(sorted(_branches, key=sortkey, reverse=False))
248 247
249 248 def _get_tags(self):
General Comments 0
You need to be logged in to leave comments. Login now