diff 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
line wrap: on
line diff
--- a/rhodecode/lib/vcs/backends/git/changeset.py	Thu Mar 21 23:09:34 2013 +0100
+++ b/rhodecode/lib/vcs/backends/git/changeset.py	Thu Mar 21 23:56:17 2013 +0100
@@ -187,8 +187,10 @@
         """
         Returns list of children changesets.
         """
+        rev_filter = _git_path = rhodecode.CONFIG.get('git_rev_filter',
+                                              '--all').strip()
         so, se = self.repository.run_git_command(
-            "rev-list --all --children | grep '^%s'" % self.raw_id
+            "rev-list %s --children | grep '^%s'" % (rev_filter, self.raw_id)
         )
 
         children = []