mercurial

Importing a Mercurial repository automatically (e.g. SVN Externals)

我怕爱的太早我们不能终老 提交于 2019-12-24 08:07:32
问题 I have a project that I am developing built off CodeIgniter. The main part of the project is a private system I am creating, but I want to add it to source control, to gain all the associated goodies. Now I'm using Mercurial, so I did the whole hg init bit, so I've got the repository set up. Now, one of the things I've done is to make a library for CodeIgniter, which I use in this project. Now I want to make this library open, so I need a separate repo for that. For anyone unfamiliar with

Verify Mercurial Checkins

杀马特。学长 韩版系。学妹 提交于 2019-12-24 07:57:18
问题 Is there any way to verify/authenticate checkins in Mercurial? I'd like to roll out HG across our organisation (60+ developers) and I'd like a way to ensure everyone's checkins are from the correct user and that they are all in the correct format. During trials we found that some users checked in under completely different usernames (copied someone else's .hgrc file) and others checked in under a number of different versions of their name (first name, full name, email address, etc) using

Get last commit for every file of a file list in Mercurial

独自空忆成欢 提交于 2019-12-24 07:39:12
问题 I have an hg repository and I would like to know the last commit date of every file in sources/php/dracca/endpoint/wiki/**/Wiki*.php So far, I have this one liner: find sources/php/dracca/endpoint/wiki/ -name "Wiki*.php" -exec hg log --limit 1 --template "{date|shortdate}" {} \; -exec echo {} \; But this seems utterly slow as (I suppose) find makes 1 hg call per file, leading to 15seconds of computation for the (say) ~40 files I have in there... Is there a faster way? The output of this

What happens when I strip one version of a mercurial repository and try to synchronize with another one?

岁酱吖の 提交于 2019-12-24 04:44:11
问题 I know what happened to me when I did it. The synchronization was apparently successful, because no warnings were generated, but when I cloned the remote repository I saw that the synchronization didn't happen at all. I was using bitbucket as the remote repository. But I don't think this is what is supposed to happen. What is then? 回答1: When you strip a changeset from a repo, it only affects your local repository. It has no effect on others. If the changeset you stripped from the local repo

Use case for private changes

谁说我不能喝 提交于 2019-12-24 04:14:17
问题 Supposing I have following scenario: I cloned some open-source project, say from URL X. Now I have local clone of it. I made some changes to local clone to try things out and commited them locally. Now what I want is following: I want to get update from the open-source project X. Just get all its latest code, without my changes at all. But I want my changes to live somewhere in tag in history so I can get them later. And I don't want to separate clone for this, want it all in my one repo. For

“Resulting command line for hg.exe too long” error in Mercurial

人盡茶涼 提交于 2019-12-24 03:43:26
问题 So, basically about every time I try to do an update to my changed files, I get this awful error. I then have to manually select only some of the files, define a commit message, then come back and select some more files, put other commit text, etc, etc until I have covered all the changed files. Is there anything simpler, dammit? I am using Tortoise HG in Visual Studio 2010 ( http://www.newsupaplex.pp.ru/index_eng.html ), if it makes any difference. 回答1: HgSccPackage uses mercurial command

How to restructure a mercurial repository with two main, parallel branches

て烟熏妆下的殇ゞ 提交于 2019-12-24 03:23:09
问题 The history of my repository looks like: A -- B -- C (branch "foo") \ -- D (branch "bar") The two branches are both "shipping" branches, and are essentially different frontends to a common backend. All the code used to be in one branch, with the foo or bar features turned on or off by a compiler switch, but I branched to make it easier to work with each individually. The problem is that the common "backend" files, by themselves, probably should be a separate branch - and I often want to just

How to restructure a mercurial repository with two main, parallel branches

做~自己de王妃 提交于 2019-12-24 03:23:04
问题 The history of my repository looks like: A -- B -- C (branch "foo") \ -- D (branch "bar") The two branches are both "shipping" branches, and are essentially different frontends to a common backend. All the code used to be in one branch, with the foo or bar features turned on or off by a compiler switch, but I branched to make it easier to work with each individually. The problem is that the common "backend" files, by themselves, probably should be a separate branch - and I often want to just

automaticly update `__version__` with mercurial? [duplicate]

寵の児 提交于 2019-12-24 03:19:14
问题 This question already has an answer here : Closed 8 years ago . Possible Duplicate: How to display current working copy version of an hg repository on a PHP page Similar to How can I rewrite python __version__ with git?, what it is the best method to store an automatically updated version number inside a python file? How good is my method of embedding version numbers into my application using Mercurial hooks? and the Mercurial keyword plan make it clear the svn-style method of automatically

Specify dot as a revision in Mercurial

谁都会走 提交于 2019-12-24 03:13:18
问题 I have found some Mercurial commands where the revision is specified as a dot; for example: hg revert --all -r . hg update -C -r . hg pull -r . What is the meaning of this dot? To which revision does it correspond? 回答1: hg help revisions says: The reserved name "." indicates the working directory parent. If no working directory is checked out, it is equivalent to null. If an uncommitted merge is in progress, "." is the revision of the first parent. In most cases it will be the revision you