You may find you'll have to spend several days/weeks picking hens from the old shed and depositing them in the new, at roosting time. Shutting them out will only result in them sleeping on the doorstep, or roof, and they'll be in danger of death by foxes.
Hens are very environment conscious. Like sheep on the hill, they can be hefted to one particular area, and they will always find their way back there after a days' foraging. They know there way about their range, and are very loath to change roosts.
The two lots may get on well enough in the open space of their paddock, but hens which are strange to a shed will be reluctant to enter when the established birds are already inside, due to the confines and the unfamiliar pecking order. They will take time to establish a roosting order and may squabble lots with perch neighbours for a while.
If I am shifting birds, I always pen them in for about a week in the new area, so that they are obliged to go up to roost in the new shed. Even then some may just keep going back to where they were.