mercurial

Mercurial workflow question (how to handle Config files)

随声附和 提交于 2019-12-30 06:30:04
问题 I have a long standing problem: at work we're using mercurial as a DSCM, but we can't figure out how to keep our config files in sync. The problem is that we want to keep track of config files and want to be able to exchange the config file contents among developers, but every developer wants to have his connectionStrings section independent of others'. Is it possible to somehow keep config files tracked but to omit the connection strings section when pulling and pushing? We tried adding

Mercurial CGI (hgweb.cgi) fails

早过忘川 提交于 2019-12-30 04:20:06
问题 I have Mercurial 1.8.1, Python 2.6.6 installed on Win 2k8 R2 running on a vm. I have tried installing from msi, source and using tortisehg. Command-line Hg works fine but I get the same error when running the hgweb.cgi: Traceback (most recent call last): File ".\hgweb.cgi", line 17, in application = hgweb(config) File "mercurial\hgweb\__init__.pyc", line 26, in hgweb File "mercurial\hgweb\hgwebdir_mod.pyc", line 61, in __init__ File "mercurial\hgweb\hgwebdir_mod.pyc", line 70, in refresh File

Can I clone just the latest changesets of a repository instead of the entire history?

南笙酒味 提交于 2019-12-30 04:00:05
问题 I have to work with an hg repository that has millions of lines of code and hundreds of thousands of changesets. As you can imagine, this really slows down mercurial and TortoiseHg. Is it possible for me to create a local repository that only has the latest few thousand changesets? Not only would this hopefully make things run snappier, but it might also save me some hard drive space. 回答1: No you can't, but you can optimise your local clone. Have a look at my answer to https://stackoverflow

Does Mercurial support empty commit messages?

房东的猫 提交于 2019-12-30 02:45:08
问题 Is there a way to configure Mercurial to allow for empty commit messages? If you try hg commit through the CLI without entering a commit message, the commit is canceled with: abort: empty commit message . Now, I know that committing without a message is usually considered bad form, but does Mercurial allow it at all? 回答1: You can use just a space, but I'd really discourage it: hg commit -m " " 回答2: If the problem is that you don't want to enter the -m "blah" part you can always set up an

How can I force mercurial to accept an empty commit

霸气de小男生 提交于 2019-12-29 08:32:41
问题 I'm trying to convert an SVN repo with hgsvn and I have some commits where SVN properties where modified, but since Mercurial doesn't use those, it sees this as an empty commit and aborts. Is there any way to force this hg commit to accept a commit that doesn't change anything? I'm not familiar enough with the internals of hgsvn to hack it to skip empty commits. 回答1: You can skip this commit if you add a local svn.$REVNUM tag to the head revision (=the revision which also has the svn.($REVNUM

What does hg copy do?

北城余情 提交于 2019-12-29 06:44:11
问题 We recently did a hg copy of a directory in our repository. We thought it does something like cp -a and hg add and maybe flag somehow that this file has been copied from another file inside the repo (so hg annotate shows the original committer). But it now seems that hg copy does more or different stuff than that. I couldn't really find much on how exactly copy works. So: What exactly does hg copy do and what special treatment does this cause in the future? If it turns out to do "the wrong

Hg sub-repository dependencies

一世执手 提交于 2019-12-29 04:35:10
问题 There have been a couple of questions about Hg sub-repo dependencies in the past (here and here) but the accepted answers don't seem to address the problem for me. A project of mine has 4 dependencies: A, B, C, D. D is dependent on A, B and C; and B and C are dependent on A: I want to use Hg sub-repositories to store them so I can track what version of each they rely on. This is because, while I am using A,B,C and D in this project, other projects will require just A and B . Therefore B and C

Git style backup of binary files

∥☆過路亽.° 提交于 2019-12-29 04:24:06
问题 I'm in process of integrating GIT version control system into 3ds max to control .max file versioning. I tested git with max files for several weeks and have found that it suites my needs, but, anyway, git is little bit overcomplicated for this kind of tasks. What I'm looking for is the program that works just like (well, almost) git, but: is naturally born windows program - git failed several times on my network shared folders and destroyed my binary max files. This is the main problem, and

Is Perforce worth it? [closed]

吃可爱长大的小学妹 提交于 2019-12-28 11:48:23
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . A colleague of mine has become excited about the possibilities with PerForce (we basically need an abillity to logistically group patches and changes, and having the SCM support this natively would be very nice). We currently use CVS and are open to all posibillities. We are

Mercurial: Ignore file permission / mode (chmod) changes

一曲冷凌霜 提交于 2019-12-28 06:46:10
问题 Is there a way to ignore file permission / mode (chmod) changes for a Mercurial repository? I'm looking for a setting similar to Git's: core.filemode -> false as described here: Can I make git diff ignore permission changes Update: the correct answer is Ry4an's together with my second comment to his answer. 回答1: Mercurial only tracks the execute permission on files and not in a user/group/other way, just as a single bit, so depending what you're trying to squelch it's possible you really need