mercurial

How to migrate/convert from SVN to Mercurial (hg) on windows

给你一囗甜甜゛ 提交于 2019-12-17 15:04:47
问题 I'm looking for a tool to migrate a couple of SVN repositories to Mercurial, with history, labels and so on. I'm using TortoiseHg (Windows x32), so ConvertExtensions are discarded. There's some info on how to do this process on a Linux box (hgsvn), but I don't have a Linux machine available. Can I use those Python scripts on Windows? If so, what do I need to do it? Or, what other tools can I use to do this process? Basically, how can I convert an SVN project to Mercurial? 回答1: I just had to

Mercurial move changes to a new branch

…衆ロ難τιáo~ 提交于 2019-12-17 14:59:18
问题 I have a number of changes that I committed to my local repository, but have not yet been pushed. Since on a feature is taking longer than expected, I want to swap these changes onto a named branch before I push. How can I do this? 回答1: As suggested by Mark, the MqExtension is one solution for you problem. IMHO a simpler workflow is to use the rebase extension. Suppose you have a history like this: @ changeset: 2:81b92083cb1d | tag: tip | summary: my new feature: edit file a | o changeset: 1

How do I clone a sub-folder of a repository in Mercurial?

女生的网名这么多〃 提交于 2019-12-17 10:15:56
问题 I have a Mercurial repository containing a handful of related projects. I want to branch just one of these projects to work on it elsewhere. Is cloning just part of a repository possible, and is that the right way to achieve this? 回答1: What you want is a narrow or partial clone, but this is unfortunately not yet supported. If you already have a big repository and you realize that it would make sense to split it into several smaller repositories, then you can use the convert extension to do a

Mercurial Eclipse Plugin

流过昼夜 提交于 2019-12-17 10:12:14
问题 Where can I find a good Eclipse Mercurial Plugin? 回答1: MercurialEclipse Update site: https://bitbucket.org/mercurialeclipse/update-site/raw/default/ Installation manual As stated below (in comments) the name is MercurialEclipse. The name HgEclipse was a fork that Intland did and was later "merged" back again with MercurialEclipse, which moved around a bit between the current site, Google code and javaforge.com. 回答2: Vectrace is dead. They say you need to go to javaforge ( http://cbes

Mercurial Remove History

眉间皱痕 提交于 2019-12-17 07:12:25
问题 Is there a way in mercurial to remove old changesets from a database? I have a repository that is 60GB and that makes it pretty painful to do a clone. I would like to trim off everything before a certain date and put the huge database away to collect dust. 回答1: You can do it, but in doing so you invalidate all the clones out there, so it's generally not wise to do unless you're working entirely alone. Every changeset in mercurial is uniquely identified by a hashcode, which is a combination of

Can I change the username on a mercurial changeset?

爷,独闯天下 提交于 2019-12-17 07:04:40
问题 I didn't set the username on my development computer and made a few commits. Can I retroactively change the username so it's clear who committed these changesets? 回答1: If you've not published your repository then this shouldn't be too hard. You need to use the Convert extension to Mercurial, which will let you 'filter' your existing repository to create a new one. the --authors switch lets you edit the author for each commit as it is filtered. If you have published your repository, please

Abandoning changes without deleting from history

别来无恙 提交于 2019-12-17 06:20:26
问题 There is a commit that just didn't work, so I want to abandon it without deleting it from history . I have updated from an earlier revision and committed, thus creating a new head. I don't have branches, I don't want branches, I just want to simply go on with the new head exactly as it is, nothing fancy, no merge, no worries, just go on forgetting the previous one. I can't seem to find how to do that, and I'm starting to believe it can't be done. All I find is stuff about branches, or stuff

Can we finally move to DVCS in Corporate Software? Is SVN still a 'must have' for development? [closed]

不打扰是莪最后的温柔 提交于 2019-12-17 05:41:07
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 9 years ago . Git/Mercurial have been becoming more and more popular. I have seen plenty of articles comparing SVN with Git/Mercurial, but I am

How to save username and password with Mercurial?

早过忘川 提交于 2019-12-17 05:16:32
问题 I used Mercurial in a personal project, and I have been typing my username and password every time I want to push something to the server. I tried adding the following to the .hgrc file in my home directory, but it seems to be completely ignored. [ui] username = MY_USER_NAME password = MY_PASSWORD How to do this the right way? 回答1: You can make an auth section in your .hgrc or Mercurial.ini file, like so: [auth] bb.prefix = https://bitbucket.org/repo/path bb.username = foo bb.password = foo

Mercurial .hgignore for Visual Studio 2008 projects

允我心安 提交于 2019-12-17 04:12:08
问题 What is a good setup for .hgignore file when working with Visual Studio 2008? I mostly develop on my own, only occasionly I clone the repository for somebody else to work on it. I'm thinking about obj folders, .suo, .sln, .user files etc.. Can they just be included or are there file I shouldn't include? Thanks! p.s.: at the moment I do the following : ignore all .pdb files and all obj folders. # regexp syntax. syntax: glob *.pdb syntax: regexp /obj/ 回答1: Here's my standard .hgignore file for