mercurial

For real, too many installations of Python on OSX Mountain Lion

吃可爱长大的小学妹 提交于 2019-12-23 19:49:54
问题 I have three different Python 2.7s at: /Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 I use a number of packages that come from different sources. I am currently installing packages from port (MacPorts), easy_install , pip (installed by easy_install ), and Mercurial. There are also some that I have to install from image or build from

“This compilation unit is not on the build path of a java project” -Eclipse

时光总嘲笑我的痴心妄想 提交于 2019-12-23 19:30:13
问题 I am new to the eclipse environment. I clone my project from the repository(Hg) by New->Project->Mercurial->Clone existing project. Here my problem is "This compilation unit is not on the build path of a java project" message comes when I editing the coding. Auto completion not working. Kindly let me know how solve this problem... Note: I searched in google as well as in stackoverflow. But still I am not clear in that. 回答1: I had this problem in Eclipse on Windows 7 as well. The solution is

Syncing SVN to Mercurial using svnsync & hg convert — misses svn:externals?

泄露秘密 提交于 2019-12-23 19:28:05
问题 I've created a Mercurial mirror of an SVN repository (using this tutorial: http://oreilly.com/opensource/excerpts/opensource-mercurial/migrating-to-mercurial.html). The sync works great, except I've noticed it's not picking up an external repository that is referenced in the main SVN repo... I'd ideally like to be able to pull everything as a single repo into Mercurial (along with changesets if possible). What I'm not sure of is: is the missing external a limitation of svnsync, or a

mercurial how to retrieve a real user who performed hg push

梦想与她 提交于 2019-12-23 17:46:03
问题 on server site: hg tip shows a user who performed hg push/commit. The data is taken from [user] section of .hgrc. I can put there whatever I like. But how to get to know on a server who really did hg push ? 回答1: You need to maintain a pushlog manually to track this — Mercurial has no built-in support for this. I wrote more about pushlogs here. You can also use a server like Kallithea which comes with a pushlog by default. 来源: https://stackoverflow.com/questions/9161761/mercurial-how-to

Fix bad merge in mercurial

烈酒焚心 提交于 2019-12-23 17:18:47
问题 In our mercurial project configuration we have 3 branches in a single repository. One is a stable release branch where urgent bug fixes are done, one is a feature branch which contains new feature code and one is a UAT branch where both bug fixes and new features are merged into to provide the most up-to-date code base. We have merged a whole load of new feature code into the UAT branch without any issues at all. Following that we merged the stable branch with the bug fixes into the UAT

abort: unsynced remote changes?

前提是你 提交于 2019-12-23 16:53:53
问题 I got a warning like this abort: unsynced remote changes! How do I 1) See what's the difference? hg diff? hg status? 2) Harmonize the code? Thanks in advance. Here's what I got running hg inspecting the heads $ hg heads ändring: 192:e571b17295e9 märke: tip förälder: 175:f50d4c4461e5 användare: tekniklas datum: Sat Jan 08 04:45:07 2011 +0000 kortfattat: twitter support added ändring: 191:9e419ce3e7e1 användare: tekniklas datum: Wed Mar 09 12:56:27 2011 +0000 kortfattat: adsense maps ändring:

hg archive to Remote Directory

人盡茶涼 提交于 2019-12-23 15:34:51
问题 Is there any way to archive a Mercurial repository to a remote directory over SSH? For example, it would be nice if one could do the following: hg archive ssh://user@example.com/path/to/archive However, that does not appear to work. It instead creates a directory called ssh: in the current directory. I made the following quick-and-dirty script that emulates the desired behavior by creating a temporary ZIP archive, copying it over SSH, and unzipping the destination directory. However, I would

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

Persistent DNS caching not utilized by Python's socket.getaddrinfo/mercurial

时光总嘲笑我的痴心妄想 提交于 2019-12-23 13:09:20
问题 I used to have very slow DNS lookups on my Ubuntu machine when connecting through one Modem/ISP. I followed instructions (such as those here) to use persistent DNS caching so I don't do repeated DNS look ups, and everything became much faster. However, I noticed that when pulling/pushing repos on mercurial, it was painfully slow to even transfer very small changes. Looking deeper, I found that all the time was taken by _socket.getaddrinfo , i.e., DNS lookups. Why is it that even though all

mercurial log format with file-statuses

允我心安 提交于 2019-12-23 12:49:20
问题 I was wondering, how do I return files added/modified/deleted for a commit in such a format: <modifier> file <modifier> path/to/a/file <modifier> path/to/another/file In git I do this: "git show --pretty="format:" --name-status commitish" and get: D file A path/to/a/file M path/to/another/file For mercurial I can't figure out how to do it with templates. I have a style file: changeset = "{file_mods}{file_adds}{file_dels}" file_add = "A {file_add}\n" file_mod = "M {file_mod}\n" file_del = "D