Any way to relate repos w/o cloning?

Andrei Vermel avermel at mail.ru
Thu Nov 13 10:05:21 CST 2008


 

I have a situation at work where I'd like to use hg to help get around some
ClearCase headaches.  I am working with another developer on a few
directories.  But we are not able to check in our files easily due to a work
policy, so in order to get each other's changes as we go along, we will have
to manually copy individual files as we change things.  I thought if we
could each set up an hg repo in our respective directories, we could pull
changes from each other easily into our respective working dirs while
development is going on w/o having to deal with ClearCase until everything
is tidy and ready for an officially sanctioned checkin.

So I went into two different working directories and did hg init/add/ci.
Then I tried to hg pull <other repo path> from the other directory into my
working dir, and I get "repository is unrelated" error.

Is there any way to relate two repos manually?  Or some other way to achieve
what I'm trying to do?
 

Jusy copy over/rsync/whatever the .hg directory, do 'hg stat' and wait a
long while till is updates the files timestamps cache. 
 
Andrei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://selenic.com/pipermail/mercurial/attachments/20081113/b602a779/attachment.htm 


More information about the Mercurial mailing list