Mercurial > kallithea
comparison rhodecode/lib/vcs/backends/git/changeset.py @ 3561:c04d1d9b6193 beta
made git refs filter configurable ref issue #797
- default --all was kept and --branches --tags (or even other variations) is possible to use via .ini file
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 21 Mar 2013 23:56:17 +0100 |
parents | 58905069da21 |
children | ca7785fae354 |
comparison
equal
deleted
inserted
replaced
3560:835d44dd6ed8 | 3561:c04d1d9b6193 |
---|---|
185 @LazyProperty | 185 @LazyProperty |
186 def children(self): | 186 def children(self): |
187 """ | 187 """ |
188 Returns list of children changesets. | 188 Returns list of children changesets. |
189 """ | 189 """ |
190 rev_filter = _git_path = rhodecode.CONFIG.get('git_rev_filter', | |
191 '--all').strip() | |
190 so, se = self.repository.run_git_command( | 192 so, se = self.repository.run_git_command( |
191 "rev-list --all --children | grep '^%s'" % self.raw_id | 193 "rev-list %s --children | grep '^%s'" % (rev_filter, self.raw_id) |
192 ) | 194 ) |
193 | 195 |
194 children = [] | 196 children = [] |
195 for l in so.splitlines(): | 197 for l in so.splitlines(): |
196 childs = l.split(' ')[1:] | 198 childs = l.split(' ')[1:] |