I need something of a bug tracker to manage my small one-person project. I decided to use fossil. My project is on bitbucket mercurial repo. Unfortunately fossil docs contain the information about git to fossil export only.
How can I export (convert) it to fossil?
Fossil can import from Git's fast-export or SVN's dump
In order to import Mercurial repo, you have previously push it to Git (with hg-git) or SVN (with hgsubversion)
Related
So I have managed to corrupt my mercurial repo. So I am following the steps from the repository corruption page on the wiki to repair it.
When I run the convert command:
hg convert --config convert.hg.ignoreerrors=True REPO REPOFIX
It gives me the following output:
initializing destination REPOFIX repository
REPO does not look like a CVS checkout
REPO does not look like a Git repository
REPO does not look like a Subversion repository
REPO is not a local Mercurial repository
REPO does not look like a darcs repository
REPO does not look like a monotone repository
REPO does not look like a GNU Arch repository
REPO does not look like a Bazaar repository
cannot find required "p4" tool
Why on earth would it say that? And how can I go about fixing it?
It definitely is a mercurial repository, it's hosted on Bitbucket, and I am using Tortoisehg to manage it.
Edit:
I think maybe I can't do this against a remote repository? How can I go about fixing this then?
You probably did not corrupt the remote repository at Bitbucket, did you?
It's more likely you corrupted your local copy, and so you can just clone it from Bitbucket again or try the hg convert … trick on your local copy (i.e. the folder you manage with TortoiseHG).
A bit late but I faced the same issue. The mistake was running that command inside the project folder. You have to run the command outside the folder containing the .hg file. I could not find a way through TortoiseHg console to move up a directory so I used windows terminal.
We are planning to move to TFS. While i hate it we have to do it for various reasons.
We have dev, staging and live branch. Do we move the source for each of the branch to TFS as separate folder and convert it to a branch later on?
Is it possible to take history along?
Is there a tool or a script which can do it?
I've not been able to find a way to convert directly from Mercurial to TFS. It looks like your best bet could be to convert your Mercurial repository to a Git repository and use git-tfs to push those changes to TFS.
I'm not familiar with Git or TFS so you'll have to do some more research to find out the exact steps but here's how I think that I'd go about it:
Convert your Mercurial repository to a Git repository (perhaps this will help)
Create your empty TFS repository
Clone your TFS repository using this page as a guide
Use git to push your converted Mercurial Git repository to the TFS Git repository
Use git-tfs to push those changes to TFS
I don't know if that will copy all the history over or if you'll just have one check in with the final copy of the code.
This seems to be the opposite of what most people are trying to do. I want to export all of the changesets from a Mercurial (Hg) repository and import them into Team Foundation Server 2010 and include the history. I can't be the only one going to TFS, right? It looks like I might be able to export from Hg to Git and then Git to TFS. Is there a better way?
You can (for bidirectional data-exchange) use SVNBridge
I have a fossil repository. How can I migrate the commits to a hg repository. I don't care about issues, wiki, branches.
See a previous answer on this issue
Is it possible to export from Fossil SCM into some other DVCS?
And the following extension should help you in exporting fossil repo to another Mercurial.
https://www.mercurial-scm.org/wiki/FastImportExtension
Fossil to Git uses the same export/import facility
http://www.fossil-scm.org/index.html/doc/trunk/www/inout.wiki
I would like to know if mercurial provides any in built BUILD tool for building/packaging the source code.
The hg archive program can create an archive of your repo's source code (minus all the Mercurial metadata and untracked files). For example, to create a tarball:
$ hg archive --prefix=myproject/ --type=tgz ~/myproject.tgz
See hg help archive for more information on usage and possible options.