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 votes

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?



Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

267 views 0 12
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