moving a repository
Tony Mechelynck
antoine.mechelynck at gmail.com
Wed Nov 3 12:00:32 UTC 2010
On 02/11/10 20:17, Matt Mackall wrote:
> On Tue, 2010-11-02 at 15:00 +0000, John Stean wrote:
>> Hello,
>>
>> I want to move a repository from one server to another, and AFAIK I do
>> this by doing a push from old to new.
>>
>> My questions are:
>>
>> 1) Will this leave the original repository intact? i.e. does the push
>> just duplicate the repository?
>
> Yes.
>
>> 2) If I cannot access the original repository to push, can I clone it
>> and turn it into a new repository?
>
> Clone is init+pull, so yes.
>
> You can also use conventional tools like cp, tar and rsync to copy
> repositories, as Mercurial repositories are just collections of files
> and contain no supernatural essences.
>
However, since these "conventional tools" usually read and write the
files one by one, make sure that no other process (and in particular no
other hg process) is pushing to a directory while you read or write it
with cp etc., or pulling from it while you write it.
Best regards,
Tony.
--
Crime does not pay ... as well as politics.
-- A. E. Newman
More information about the Mercurial
mailing list