mercurial

ISO Mercurial “attributes” - tags that apply to more than one changeset, applied after the changeset

白昼怎懂夜的黑 提交于 2019-12-10 17:22:41
问题 BRIEF How do I tag multiple changesets in Mercurial with the same tag? Possibly on the same branch, possibly on different branches. E.g. something like a tag that says whether the full QA test ran. I can create multiple instances of a tag by editing the file, but the hg tools nearly always ignore all but the first. DETAIL I am looking for what I call changeset "attributes" - a concept that I have used in other CVS and DVCS, but which I cannot seem to find in Mercurial. Basically, an attribute

Using Mercurial to separate three versions: official/development/testing/

为君一笑 提交于 2019-12-10 17:12:46
问题 I'm working on deploying a Python module composed of several dozen files and folders; I use Mercurial for managing the software changes. I want to keep the same module in three branches: the official one (which the team uses), the development one (this may be more than one development branch), and the testing branch (not the testing of the official branch, but a collection of test related to a third party module used by my module - regression testing when the third party module makes new

write custom log keyword filter as extension in mercurial

断了今生、忘了曾经 提交于 2019-12-10 17:06:00
问题 I have checked the tutorial on how to write a mercurial extension and I wonder how do I do to specifically add a filter for log keywords? Thanks for help. 回答1: I think an example will explain it best: from mercurial import templatefilters def upper(s): return s.upper() def extsetup(ui): templatefilters.filters["upper"] = upper # Then run: # # hg tip --config extensions.upper=~/tmp/upper.py --template "{author|upper}\n" # # to test (shamelessly stolen from mg, I hope he forgives me ;) 来源:

Mercurial workflow for updating with uncommitted changes?

坚强是说给别人听的谎言 提交于 2019-12-10 16:57:35
问题 So i've made the switch from CVS to mercurial for my website. The biggest issue I am having is that if i'm working on some files that I don't want to commit, I just save them.. I then have other files I want to push to the server, however if someone else has made changes to the repository, and I pull them down.. It asks me to merge or rebase.. either of these options will cause me to lose my local changes that I have not committed. I've read that I should clone the repository for each project

preserving history when using mercurial ontop of clearcase

不问归期 提交于 2019-12-10 16:55:49
问题 I work in a ClearCase shop and CC does a good job of integrating the team's work though our code review process prevents me from using it to track my daily changes. Creating an hg repository on top of my CC view works really well. I can track my changes and easily make backups on the file server, produce diffs for people etc. This is all well and good until I move to a new CC view and have to leave my history behind. I would love to be able to ?pull? my previous history in and have everything

Merge tip from an unrelated repository with Mercurial

前提是你 提交于 2019-12-10 16:46:26
问题 I have two unrelated repositories 'public' and 'develop': prj/ public/ develop/ 'develop' has lots of commits, 'cause here is where I work. Maybe even multiple heads From time to time I want publish a snapshot of the development repository. From the public folder I could do this: >hg pull -f ../develop >hg merge >hg commit -m "alpha2" But this will also pull the complete changeset history from 'develop' to 'public' (which is not what I want). I could also delete all files from 'public',

Is it possible to integrate JIRA with mercurial (without fisheye)?

孤街醉人 提交于 2019-12-10 16:18:27
问题 I'm setting up a development server with JIRA as issue tracker and mercurial as SCM. Is it possible to relate commits with the JIRA's issues (without using fisheye or any commercial tool)? 回答1: Yes, the JIRA Mercurial plugin does this, just like the JIRA Subversion plugin does for Subversion. It needs an update for 4.3 though, I must get around to that. 来源: https://stackoverflow.com/questions/6504257/is-it-possible-to-integrate-jira-with-mercurial-without-fisheye

Using the Mercurial hgsubversion extension with SVN Externals

拟墨画扇 提交于 2019-12-10 16:08:29
问题 I'm using Mercurial to talk to a Subversion repository, and the repository is currently using SVN externals to pull in another repository. hgsubversion works really well for communicating with the repository, but it doesn't seem to work with SVN Externals. Is there a way to configure it to work with this? EDIT: Partial Solution SVN Externals can be pulled down just fine. In your repository, add a new file called .hgsvnexternals (if Windows is complaining about not having a file name when you

How can I checkout the OpenJDK from the mercurial repository?

懵懂的女人 提交于 2019-12-10 16:08:14
问题 How can I checkout the the sources of the OpenJDK? I want see if some bug fixes work. The last download is very old. I use the the mercurial URL http://hg.openjdk.java.net/jdk6/jdk6. But I see only a revision of 58 and some make files in the repository. It does not look like the sources of the OpenJDK. Is this the wrong repository URL? It is list on the project home page at http://openjdk.java.net/projects/jdk6/. I have never work with mercurial before. What am I doingg wrong? 回答1: Try http:/

Checking hgrc file into Mercurial

我只是一个虾纸丫 提交于 2019-12-10 16:05:31
问题 I have a project using mercurial for version control, SCons to build, and google test to write unit tests. The hgrc file hooks pre-commit and runs SCons to build the project and and run unit tests. Is there a way to "check-in" a portion of the hgrc file so that newly checked out copies, and any merges with my version of the project automatically get an hgrc file that runs SCons when they try to commit? 回答1: You can't get people to automatically have entries in their .hg/hgrc when they clone -