mercurial

How do I specify a different editor for Mercurial on Windows?

早过忘川 提交于 2019-12-11 03:56:51
问题 Whenever HG needs to prompt for a commit message, or whatever, it opens up Notepad. This is annoying. I have Vim7.3 installed, and I've tried setting the EDITOR environment variable to point to gvim, to no avail. I'm using PowerShell, but I've tried testing in both PowerShell and cmd. They both keep insisting on Notepad. 回答1: [ui] editor = C:\Path\To\gvim.exe In your .hgrc file. 回答2: Mercurial tries to pick which program to call to edit a commit message by trying the following (in order):

Mercurial : Way to avoid skipping ancestor revision

只愿长相守 提交于 2019-12-11 03:53:52
问题 I have a similar problem to what does 'skipping ancestor revision' mean when using 'graft'? But this SO topic don't give solutions, only explanations. In more details : Yesterday a co-worker commited an error and push it. Others co-workers and me added commits after this. In order to fix this error quickly I used hg backout to cancel this commit number 11511. But I don't want to loose this commit, so I created a new branch (from the backout commit) and I tried to graft the 11511 commit but

Making a subset of a repository publicly available, whilst keeping history

十年热恋 提交于 2019-12-11 03:39:15
问题 I've got some code under version control (using mercurial), and would like to share some of it, whilst hiding other parts which I cannot release into the public domain (at least at this stage). I'd ideally like to keep the revision history of the public code intact, and, more importantly, be able push/pull changes between the public repository and the repository containing both public and private code. It should not, however, be possible to recover any of the private info from the public

How to make mercurial sort the output of `hg log -G` by commit date?

半城伤御伤魂 提交于 2019-12-11 03:26:51
问题 How can I make mercurial order the graph log output of hg log -G by commit date? Using hg log -r 'sort(all(), -date)' works without the graph log option as answered in [1], but that solution doesn't seem to have any effect on the order of the graph log. I'm looking for a mercurial equivalent of git log --graph --date-order . 来源: https://stackoverflow.com/questions/47270988/how-to-make-mercurial-sort-the-output-of-hg-log-g-by-commit-date

Wget compressed tip from Bitbucket (mercurial)

拈花ヽ惹草 提交于 2019-12-11 03:02:59
问题 We would like to use mercurial for web development, but we can't (and don't want to) install mercurial on a shared host. We try to use wget as mentioned here, but I get 401 error. Credentials and link are correct (modified for security). Is there a way to download source from command line? Is this bug or am i doing something wrong? Response below: $ wget _http://xxxx:yyyyyyy@bitbucket.org/username/repo/get/be51983f6357.zip --2011-10-31 00:26:50-- http://username:password@bitbucket.org

Using Mercurial, how to diff with a fixed revision if commit intermediate states often?

末鹿安然 提交于 2019-12-11 02:58:52
问题 Using Mercurial, say if I do an hg pull and hg up and now the local repo and working directory are both up to date. What if I commit often, say 1 day later, and then 2 days later, and want to diff with the revision as of right now? Otherwise, the diff is always comparing to the previous committed version. I can use pencil and paper and write down the revision number right now, say, 4117 , and then 1 day later, 2 days later, and any time before I am sure and push to the remote central repo, do

Should I have to merge and commit every time I update my Mercurial branch on the production server?

情到浓时终转凉″ 提交于 2019-12-11 02:48:50
问题 I'm using Mercurial in a recent project. On the web server where I'm deploying the project I have a slightly different config file with production settings. The problem is when I pull and update , I often have to merge and commit as well. Is this the correct workflow? It seems strange that in order to be able to continue to update I have to be committing the changesets, I figured a merge would integrate them into my production branch and continue to do so each time i update. Is this a

How can I synchronize closed and open sourced versions of the same tool using Mercurial?

╄→гoц情女王★ 提交于 2019-12-11 02:33:16
问题 I have a tool I would like to release the source to. However, a few features cannot be released as open source parts because of licensing restrictions. I'd like to generally develop the tool itself using the open source version of the code, but at each release I need to port the few features in the closed version back into the build for a particular client. I can't just use a normal branch for this, because that would put the closed source bits into the same repository as where I'd like to

Mercurial sparse checkout

一世执手 提交于 2019-12-11 02:18:34
问题 In this F8 conference video(starting 8:40) from 2015 they speak about the advantages of using Mercurial and a single repository across facebook. How does this work in practice? Using Mercurial, can i checkout a subdirectory (live in SVN)? If so, how? Do i need a facebook-mercurial-extension for this P.S.: I only found answers like this or this from 2010 on SO where i am not sure if the answers still apply with all the efforts FB put into it. 回答1: From your question it is not clear if you are

Cleaning up a mercurial repository for an external contractor

≯℡__Kan透↙ 提交于 2019-12-11 02:14:08
问题 I have an active project with some sensitive files and directories. I want to hire an external contractor to do some simple UI work. However, I don't want the contractor to have access to some directories and files. My project is in mercurial on Bitbucket. What is the best way to clean up the project and give him access to commit his changes? I thought about forking into a new repository, but I am worried about removing directories I don't want him to have access to. How to I remove them so