mercurial

can't push/pull from mercurial repository - abort: error: An existing connection was forcibly closed by the remote host

空扰寡人 提交于 2019-12-18 05:18:11
问题 I am planning to use mercurial for a new project but I'm having some problem accessing the bitbucket repository. I'm new to mercurial, but I have used git previously. I get the following error when peforing a hg clone or push: abort: error: An existing connection was forcibly closed by the remote host I only have this problem when using my work pc, when accessing the repository from my home pc I can clone and push just fine, any ideas, is there some firewall setting that needs to be

Error setting up Mercurial on Windows Server 2008

那年仲夏 提交于 2019-12-18 05:02:55
问题 I want to set up a Mercurial SC server and have been following the instructions found here: http//stackoverflow.com/questions/818571/how-to-setup-mercurial-and-hgwebdir-on-iis I have checked all my settings multiple times and cannot seem to get passed this error after completing the configuration. Any advice would be helpful. Thank you. Server Error in Application "DEFAULT WEB SITE/HG"Internet Information Services 7.5 Error Summary HTTP Error 502.2 - Bad Gateway The specified CGI application

Join multiple subrepos into one and preserve history in Mercurial

依然范特西╮ 提交于 2019-12-18 04:40:19
问题 Currently I have project consisting of multiple repositories, e.g.: +--- Project (main repo) +--- Core (subrepo) +--- Web (subrepo) \--- Tests (subrepo) Unfortunately the code between subrepos is quite coupled so it doesn't work nicely with branches. Is there any way to consolidate the subrepos into one main repository preserving the history? 回答1: I would start with using hg convert with a filemap that excludes the .hgsub and the subrepos. Next, use hg convert on the subrepos with rename

hg: How do I change the language of my Mercurial(hg) installation? (MacOS)

痴心易碎 提交于 2019-12-18 03:04:28
问题 I re-installed mercurial on my Mac (snow leopard) yesterday. The UI/console language of Mercurial has changed from English to Danish. My machine is set up to US-English and my keyboard layout is Danish. I do not want the Danish translation active as it is incomplete. I just need Mercurial to "speak" English again. :-) How do i change this? 回答1: If you set your LANG environment variable to en_US.UTF-8 your can change the language of the Mercurial client (Hg). export LANG=en_US.UTF-8 回答2: If

How to deploy to Heroku using Mercurial?

时光毁灭记忆、已成空白 提交于 2019-12-17 23:10:53
问题 I've been using Mercurial for quite some time and I'd like to start using Heroku as a deployment platform. However, they seem to support Git only. Does anybody knows how to Heroku using Mercurial? 回答1: Once you have installed the Hg-Git mercurial plugin, add an alias to the .hg/hgrc of your repository: [alias] push-heroku = push git+ssh://git@heroku.com:<app name>.git You are now able to push your application to Heroku: hg push-heroku Be aware that Heroku does not link your repository name

Mercurial scripting with python

会有一股神秘感。 提交于 2019-12-17 22:32:24
问题 I am trying to get the mercurial revision number/id (it's a hash not a number) programmatically in python. The reason is that I want to add it to the css/js files on our website like so: <link rel="stylesheet" href="example.css?{% mercurial_revision "example.css" %}" /> So that whenever a change is made to the stylesheet, it will get a new url and no longer use the old cached version. OR if you know where to find good documentation for the mercurial python module , that would also be helpful.

Useful Mercurial Hooks

牧云@^-^@ 提交于 2019-12-17 22:31:38
问题 What are some useful Mercurial hooks that you have come across? A few example hooks are located in the Mercurial book: acl bugzilla notify check for whitespace I personally don't find these very useful. I would like to see: Reject Multiple Heads Reject Changegroups with merges (useful if you want users to always rebase) Reject Changegroups with merges, unless commit message has special string Automatic links to Fogbugz or TFS (similar to bugzilla hook) Blacklist, would deny pushes that had

How can I import a mercurial repo (including history) into another mercurial repo as a subdirectory, without using subrepos?

耗尽温柔 提交于 2019-12-17 22:05:46
问题 This sounds kind of complex, so let me explain: Project_A has lived for some time within its own Mercurial repository. Project_A is now getting folded into a new super project, Super-Project_B. Super-Project_B also has a mercurial repository. We would prefer if Project_A were not a subrepo, but instead just a normal child, but we also don't want to lose the history. Is there a way to do this? 回答1: Yeah. Use the convert extension to move projectA down one directory level: hg convert --filemap

For home projects, can Mercurial or Git (or other DVCS) provide more advantages over Subversion? [closed]

孤街浪徒 提交于 2019-12-17 21:58:12
问题 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 last year . Which free source control system is most preferable with reason for home projects and documents? I am thinking to use Subversion (as I am familiar with it). Characteristic of home project: Most likely single person will be committing changes. (May be one day (not now), it is

How to view revision history for Mercurial file?

牧云@^-^@ 提交于 2019-12-17 21:41:17
问题 For a given file in a Mercurial repository, how can you see the revision history? And how can you diff two revisions of the file? Ideally doing all this with visual tools (we use ExamDiff to do some other diffs). I'd say this is basic source control functionality but I can't seem to figure out how to do this with Mercurial. 回答1: hg log file hg diff -r 10 -r 20 file 回答2: The hgk extension gives you hg view file command that shows a visual history, from which you can diff/vdiff arbitrary pair