clone a wiki from an existing repository and pushing it to a new repository Edited

Dear all,

I have a question. I need to repeat a wiki for several repositories ( all mercurial) . If I clone the wiki from one repository and try to copy all the *.rst files to the new repository and then do a commit, then all the hyperlinks and images in my wiki is corrupted.

Also if I try to clone the existing wiki to push it to the new repository´s wiki (a wiki is a mercurial repository itself), then I get the error :

abort: repository is unrelated.

How can I fix this problem?

Thank you very much for your response,

1 answer

0 vote

Hi Hedieh, I've tried reproducing this and I was able to copy the files from one of the wikis to another one, then push them with no issues. 

Keep in mind that you won't be able to copy the full wiki repository directory including the .hg and push it to the other wiki, as the other wiki is also a repository by itself and contains another .hg which will conflict. For more information on how Mercurial stores its internal data structures you can read Mercurial repository.

You mentioned in your message that your wiki got corrupted, where are the hyperlinks and images pointing to?

Regards,

Ana

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,749 views 1 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you