Looks like it will do either.
http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3750/software/troubleshooting/switch_stacks.html
"If the stack master detects that the software on a new switch does not match, it upgrades (or downgrades) the...