Will time machine wipe out my old time machine backups if I move it to a new mac (or upgrade os x)?
No.
Time Machine will just start backing up your Mac along side your old Backups. Your previous machine will be back on Tuesday (or whenever last backed-up) in your timeline, with the new machine after that.