# HG changeset patch # User Sverre Rabbelier # Date 1243218044 -7200 # Node ID a989866eead84f81ac10e9dda7718c2c28c8ea06 # Parent 6701ab807bf5f702d4f4bbc9bdff1c9ca4e1ea09 Make it possible to limit what branches are imported diff -r 6701ab807bf5 -r a989866eead8 git_handler.py --- a/git_handler.py Mon May 25 01:44:38 2009 +0200 +++ b/git_handler.py Mon May 25 04:20:44 2009 +0200 @@ -57,6 +57,8 @@ else: self.gitdir = self.repo.join('git') + self.importbranch = ui.config('git', 'importbranch') + self.init_if_missing() self.load_git() self.load_map() @@ -494,6 +496,9 @@ if remote_name: todo = self.git.remote_refs(remote_name).values()[:] + elif self.importbranch: + branches = self.importbranch.split(',') + todo = [self.git.ref(i.strip()) for i in branches] else: todo = self.git.heads().values()[:]