def by_name(name, cmd_options={})
      all(cmd_options).find do |b|
        b.name == name
      end
    end
def by_name(name, cmd_options={})
      all(cmd_options).find do |b|
        b.name == name
      end
    end
Return a {Mercurial::Branch Branch} instance for a branch with a specified name.

 === Example:
  repository.branches.by_name('branchname')