mercurial

Mercurial repository narrow clone?

半世苍凉 提交于 2020-01-04 11:14:02
问题 Update because of new insights : Upon seeing this question five years later, I realise that this stems from trying to use a version control system as a package manager. This of course leads to all sorts of unexpected issues, and we shouldn't be using it that way. If you're reading this question, I suggest searching for a package manager for your preferred language. My original question : I'm currently in the process of moving from Subversion to Mercurial, and I have to say I don't regret that

Mercurial repository narrow clone?

巧了我就是萌 提交于 2020-01-04 11:11:36
问题 Update because of new insights : Upon seeing this question five years later, I realise that this stems from trying to use a version control system as a package manager. This of course leads to all sorts of unexpected issues, and we shouldn't be using it that way. If you're reading this question, I suggest searching for a package manager for your preferred language. My original question : I'm currently in the process of moving from Subversion to Mercurial, and I have to say I don't regret that

Add additional changesets prior to changeset 0 (zero)?

不想你离开。 提交于 2020-01-04 05:35:13
问题 I have a Hg repository with changeset 0 representing just "adding .hgignore". Starting with changeset 1 I added changesets step by step from a number of Subversion revisions by a script. Then I worked for some time with Hg. Now I decided that some more Svn revisions will be needed, which are located earlier in history than the beginning revision (changeset 1 in Hg). Is it possible to insert new changesets between 0 and 1? If yes: How? 回答1: You can use a Mercurial to Mercurial conversion for

Using hg repository as web site

自作多情 提交于 2020-01-04 04:23:10
问题 This is somewhat related to my security question here. Is it a bad idea to use an hg / mercurial repository for a live website? If so, why? Furthermore, we have dev, test and production installations of our website, like dev.example.com , test.example.com and www.example.com . If it's a bad idea to use a repository for a live/production website, would it be OK to use an hg repository for the dev and test sites? I'm also concerned about ease of deployment. We have technical and less technical

mercurial: any command or python api to get repository name

时光毁灭记忆、已成空白 提交于 2020-01-04 03:50:00
问题 Is there any Mercurial command or Python API that could yield the repo name? This will help developing cross-repo scripts. The only related solution that I found is to parse the .hg/hgrc [paths] section 'default' config option. [paths] default = ssh://server//path/tools There must be a more elegant solution, I think. 回答1: There is no real concept of a "repository name" in Mercurial (a repository doesn't "know" or care about its own name). I think you mean "last past component of the default

Hg repository corruption when using Windows network shared directory

 ̄綄美尐妖づ 提交于 2020-01-04 02:16:07
问题 I hope I can get some help here as SO UX is better than Mercurial mail list. I've been happily using Mercurial at home for years. I am also using it with Bitbucket Cloud for a couple of more serious (but still hobby) projects. Last year I switched my team at work from SVN (company hosted) to Hg (self-hosted, with the central repo on a network location). We are all in Windows. Since then, we're continuously having problems with severe central repository corruption, which can only be resolved

CruiseControl.NET's Filtered Source Control Provider Not Detecting Modifications When Using Mercurial

有些话、适合烂在心里 提交于 2020-01-04 00:05:17
问题 We are in the process of switching to Mercurial. Our repository has a number of different projects, so we are using the filtered source control so that only changes to a project’s files trigger a build. I’m seeing in my ccnet.log that CruiseControl is correctly grabbing the modification list from Mercurial, but it always reports "No modifications detected." I think I might be specifying the wrong or an incorrect pattern. This is what I see in the log: 2010-08-12 18:25:41,305 [BuildAndTools

Mercurial: alias with arguments

丶灬走出姿态 提交于 2020-01-03 20:56:17
问题 I want to create an alias so that when I run: hg pushbranch <<SOME_BRANCH>> it aliases to: hg push -b <<SOME_BRANCH>> Where SOME_BRANCH is the name of a branch I wish to push. I can create an alias in my .hgrc , but don't know how I could supply an argument to the alias. 回答1: From the hgrc help Positional arguments in the form of $1, $2, etc in the alias definition are expanded by Mercurial before execution. Thus, your alias definition, which will allow to push any branch, will be pushbranch

Windows permissions on a directory: Mercurial - hg merge - “abort: access is denied”

元气小坏坏 提交于 2020-01-03 17:28:40
问题 Background: this is running on a Windows 2008 Server. https://www.mercurial-scm.org/wiki/Workflows#Feature_separation_through_named_branches I'm a Mercurial newbie, and am trying to follow the advice above where it says to "Merge default into your feature as often as possible" -- and I've done this a couple of times previously today, already, with other files. However, this newest change just won't merge. When I do the 'hg merge default' I get the error "abort: Access is denied". After

Blocking write-access to a specific branch in a single mercurial repository

家住魔仙堡 提交于 2020-01-03 14:20:41
问题 Is it possible to write some manner of hook in mercurial that will reject changesets that effect a specific named branch in a repository? We have a managed project and would like to allow any developers to push their changes to our repository so long as they are in their own named branch. This allows us to manage a single buildbot and a shared sandbox in the same repository (by keeping branches separate). We'd like to block any attempts to write to the default branch from outsiders (we would,