You're probably finished if this happens in a tri, but at the Tour de Nez, one of the Proman riders busted her chain, carried the bike up a hill, got a loaner...and finished the race. Check out the video...
http://www.cycleto.com/...w=article&id=303
http://www.cycleto.com/...w=article&id=303