mercurial

Mercurial qfold ALL patches?

半世苍凉 提交于 2019-12-10 15:59:47
问题 Turns out there is no hg qfold -a . I tried hg qfold $(hg qunapp) and hg qunapp | xargs hg qfold but couldn't get it to work. Any ideas? 回答1: With your xargs approach, did you remember that qfold only folds unapplied patches into an applied patch? This worked for me (Windows) to fold all patches into the first patch: hg qpop -a # remove all patches hg qpush # apply first one for /f %i in ('hg qunapplied') do hg qfold %i # fold remaining patches 回答2: Hmm... we could add a -a flag... But until

Partial branch or partial merge or other way to help me to sync dotfiles?

孤人 提交于 2019-12-10 15:57:49
问题 I don't know how to make my requirement short in title, sorry if it is not meaningful. I will explain here: Many people put their dotfiles on bitbucket or github, to ease later installation or configuration, sync over different pc. I did the same, however I want to do something special, I am not sure how mecurial/git could help. What I have: I have 3 machines, say Home, Office and Client, all linux OS (could be different distributions). To make the example simple, say I just want to put one

Mercurial - how to find first commit on specific branch

左心房为你撑大大i 提交于 2019-12-10 15:47:08
问题 I wan't to determine the age of the "foo" branch. As I understand it is impossible to get this info straight. I trying to write command that will find information about first commit on the "foo" branch. hg log -r "parents(min(branch(foo)))" This one returns not exactly what I want. Can somebody help me? 回答1: Does this give you what you need? hg log -r "branch(default) and 0:" -l 1 --template "{date|isodate}\n" I think this gives you the date of the first changeset on the named branch. So,

Mercurial graph colors

匆匆过客 提交于 2019-12-10 15:44:50
问题 What does it mean for different segments of the graph in the Mercurial Repository Explorer to have different colors? 回答1: Mainly to help distinguishing the branches and their merges, including merges from anonymous branches (See A Guide to Branching in Mercurial). For instance, for the named branch 'stable', you will see: 来源: https://stackoverflow.com/questions/3674063/mercurial-graph-colors

Mercurial remotes on the file system instead of http server

橙三吉。 提交于 2019-12-10 15:21:20
问题 I'm currently working on a migration from svn to mercurial. My needs are plain and simple, I need source control over an intranet in our company. I see examples everywhere for setupping remote repos over IIS. I just don't see the point when I can just make a share on a server. Can I still setup authorizations and authentications on repos using NTFS permissions? Am I missing something? Thank you 回答1: Putting a repository on a file share works, but it's not the way recommended by the Mercurial

funny that when .hgignore is added for Mercurial, this file itself shows up as “?” in hg status?

馋奶兔 提交于 2019-12-10 15:13:39
问题 Is it normal? So you just need to add \.hgignore to the list to ignore itself? 回答1: Yes, but you don't want to ignore the .hgignore file. When a new person checks out your repository, don't you want them to get your ignored-files list? Instead, do hg add .hgignore; hg commit . Bottom line: .hgignore is tracked like any other file in the repository. 回答2: Just to supplement Borealid's answer: ? in hg status means that the file is in the working directory, but not tracked. You usually see it in

Mercurial Maven Release plugin problems

﹥>﹥吖頭↗ 提交于 2019-12-10 15:11:16
问题 I love using Maven and distributed SCMs like Mercurial (BitBucket). However as I bring my project to scale and my Hg repository grows, I am finding the Maven Release plugin more and more cumbersome to work with. The primary problem is that when a mvn release:prepare is called Maven doesn't take advantage of the distributed nature of Hg and performs a full clone of the entire repository to put into a temporary directory. The issue is very well documented by Fabrizio Giudici back in 2009 http:/

How do you specify authentication information for Mercurial as part of Jenkins? (mercurial_keyring)

独自空忆成欢 提交于 2019-12-10 15:03:56
问题 I've got my code in a Mercurial repository (secured with a self-signed certificate) and I'm trying to set up Jenkins to work with it. I've got the Mercurial plugin installed in Jenkins (pointing to an install of TortoiseHg on the Jenkins Server/Slaves) and the Jenkins Job is properly configured to grab the source from the repository. When I build manually (ie, via the web interface) everything works as expected. However, it seems like the polling of the repository does not succeed as I get

How to move a Mercurial repository created on a local PC to a web server?

橙三吉。 提交于 2019-12-10 14:55:21
问题 I have created and committed to Mercurial repository that was created on my local drive. I now have a remote Windows 2003 web server setup to serve repositories via hgwebdir.cgi. How do I move the locally created repository to the web server? It looks like an ftp of the .hg folder on the local drive to the remote web server does the trick. Am I doing it the right way. Is there a more efficient way? 回答1: Copying the .hg directory is a completely valid way to do it. NOTE: You will probably want

Issue with installing Mercurial Activity extension

邮差的信 提交于 2019-12-10 14:51:47
问题 I'm using Windows XP with installed Mercurial TortoiseHg on it. Now I need to install the external activity extension. I downloaded the extension and enabled it in hgrc. When I'm try to call it using command: hg activity I receive the following error: There are 292 changesets Hg activity options: you need matplotlib in your python path in order to use the hg activity extension. Then I installed the python 2.6 and matplotlib. So the paths of them are: D:\Python26\ D:\Python26\Lib\site-packages