Your holding period for the replacement stock includes your holding period for the stock sold, except for the purpose of applying the 6-month holding period requirement for choosing to roll over the gain on its sale.