def log(self, n=None, template=None):
        """
        Run the repository log command

        Returns:
            str: output of log command (``bzr log -l <n>``)
        """
        cmd = ['bzr', 'log']
        if n:
            cmd.append('-l%d' % n)
        return self.sh(cmd, shell=False)