def rbt(self, args): if not args: args = ['help'] self._activate_virtualenv() self.virtualenv_manager.install_pip_package('RBTools==0.6') from rbtools.commands.main import main # main() doesn't accept arguments and instead reads from sys.argv. So, # we fake it out. sys.argv = ['rbt'] + args return main()
def rbt(self, args): if not args: args = ['help'] self._activate_virtualenv() # We install RBTools from source control because the currently released # version doesn't have patches that make Mercurial usable in many # scenarios. commit = '416a728292dff3f279e5d695f48a29749b51b77a' self.virtualenv_manager.install_pip_package( 'git+https://github.com/reviewboard/rbtools.git@%s#egg=RBTools' % commit) from rbtools.commands.main import main # main() doesn't accept arguments and instead reads from sys.argv. So, # we fake it out. sys.argv = ['rbt'] + args return main()