139. In every case in which a sentence of transportation is passed under this Act, the offender, until he is transported, shall be dealt with in the same manner as if sentenced to rigorous imprisonment and shall be deemed to have been undergoing his sentence of transportation during the term of such imprisonment.