scmutil: extract function that builds revset expr to select bookmark branch
This is needed to process "log -B" option properly. "log" options have to
be translated to a revset expression, not to an evaluated set.
ERROR: FIXME: This is a known failure of filelog.size for data starting with \1\nOK.