hgrc

Mercurial hook that operates like 'changegroup', but only on push?

依然范特西╮ 提交于 2020-08-24 10:45:07
问题 We've built a changeset propagation mechanism, but it relies on bundling and unbundling the new changesets. If we were to use the changegroup hook, then it would cause cyclic behaviors, because the hook is run during a pull, push, or unbundle. What we need is for the sync to be done after a commit, which the commit hook works perfectly for, but also after a push . Note, the post-push hook is not the answer, as it is run when you push from that repository to another. This scenario calls,

Load multiple .hgrc files - ie, some with machine-specific settings?

本秂侑毒 提交于 2020-01-11 04:41:39
问题 I'd like to keep two ~/.hgrc files: ~/.hgrc and ~/.hgrc.local – one with "standard" settings (eg, username ), the other with machine-specific settings (eg, setting a graphical merge tool). How can I do this with hg? For example, this is how I do it with Vim: # ~/.vimrc syntax enable source ~/.vimrc.local Then: # ~/.vimrc.local let work_code = 'code/work/.*' if expand('%:p:h') =~ work_code ... fi 回答1: There's a not-often used %include directive in mercurial 1.3 and later: From man hgrc : A

Convert Subversion repository to Mercurial

泄露秘密 提交于 2020-01-02 13:11:36
问题 I am trying to convert an SVN repository to Mercurial, but I'm having some troubles. These are the steps I've taken: (I am on Windows) Turned on "convert" in the extensions Opened a command window, and typed: hg convert http://myversioncontrorepositoryhere It says it's initializing the destination folder and then asks: Enter username for Administration at http://myversioncontrorepositoryhere: type my username then in Administration at http://myversioncontrorepositoryhere: I assume this is my

How do I set up a hook in HG / Mercurial that gets dictated by the repository?

旧街凉风 提交于 2019-12-23 15:28:54
问题 I have a need for a hook to run after update (this will build the solution they have updated) and I don't want to have to add that hook manually for each person that clones my central repository. When someone first clones my central repository, is it possible to include hooks into that clone? It seems that the .hgrc file doesn't get cloned automatically. I did read about site-wide hooks, but as far as I understand it, they work on each created repository, where I only want to have the hooks

Get a 404 Error when clone, pull mercurial repository

别来无恙 提交于 2019-12-22 06:49:46
问题 I have a repository in here http://repos.joomlaguruteam.com/ I using hgweb.cgi this is my hgweb.config file [web] baseurl = #allowpull = true allow_push = * push_ssl = false allow_archive = bz2 gz zip [paths] / = /home/repos/* I can browse it but I can't clone it. Every time I clone it I have this error hg clone http://repos.joomlaguruteam.com/hello destination directory: hello requesting all changes abort: HTTP Error 404: Not Found and the access log have that 115.5.95.59 - - [10/Feb/2011:04

creating new remote repository for existing project with Mercurial

一世执手 提交于 2019-12-21 11:28:15
问题 I have a project with version.2 and i have to start working on it to develop a new version.3 . I want to create a new repo on a remote server (i.e. a mercurial-server) so that my team member could access that repo .I have my project file on my local machine . I have two concerned questions : How can I create it in /home/hg/repositories/private/project3 (Lets say new repo name would be project3) of remote mercurial-server with my project files. What steps should I follow to do this. How can I

How do I move a private Mercurial repository to a central server?

让人想犯罪 __ 提交于 2019-12-20 12:16:53
问题 I’m just getting started with Mercurial, and I’ve read Joel Spolsky’s Hg Init tutorial, which I liked. I’m wondering: let’s say I have a private repository and I work on it for about a month. Then I decide I want to centralize it or make it public, like on bitbucket.org. I want to retain all the history. The intuitive thing would be to use hg clone, but according to the docs: The location of the source is added to the new repository's .hg/hgrc file, as the default to be used for future pulls.

How do I move a private Mercurial repository to a central server?

烂漫一生 提交于 2019-12-20 12:15:57
问题 I’m just getting started with Mercurial, and I’ve read Joel Spolsky’s Hg Init tutorial, which I liked. I’m wondering: let’s say I have a private repository and I work on it for about a month. Then I decide I want to centralize it or make it public, like on bitbucket.org. I want to retain all the history. The intuitive thing would be to use hg clone, but according to the docs: The location of the source is added to the new repository's .hg/hgrc file, as the default to be used for future pulls.

Can I set Mercurial config options programmatically?

泄露秘密 提交于 2019-12-18 18:52:26
问题 I'm looking for a way to set .hgrc configuration items without actually editing the text file. I'm trying to standardize the setup of the hgrc across multiple developers and I would like a command like hg --config ui.username=foo but which also saves that config change into the hgrc file. It seems like this should be something that should be supported directly in the vanilla hg command, but I can't find it anywhere. 回答1: Someone -- either you or Mercurial -- will have to edit the

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