mercurial

Prevent access to some files in webserver - mercurial/ssh

三世轮回 提交于 2019-12-12 03:14:54
问题 I have a centos server with code maintained using a mercurial repo. To allow a new person to commit code to mercurial, I create a new user, add them to the webdev group, and they can push / pull code by hg pull ssh://name@server.com. However, there are some files (config files) that I would not like new users to have access to. Mercurial has been asked not to track these files, so the only way to access them is to ssh into the system and look at the files. Which I dont want new users to be

-mno-cygwin : gcc building Mercurial (Windows 2000)

雨燕双飞 提交于 2019-12-12 02:47:44
问题 Because the Mercurial Installer will not work on an old Windows 2000 system, I'm trying to build it from source. Its complaining that the C Compiler doesn't recognize the option -mno-cygwin . My version of gcc is 4.6.1. and MinGw is only two months old. Followed these steps: https://www.mercurial-scm.org/wiki/BuildingOnWindows F:\mercurial-2.0.2>python setup.py build running build running build_mo warning: hgbuildmo: could not find msgfmt executable, no translations will be built running

Why does hglib not allow status for a revision and changes?

一曲冷凌霜 提交于 2019-12-12 02:45:33
问题 To get a list of changes, this answer gives the command line: hg status --change REV But calling status using hglib gives an error: >>> client.status(rev=-1, change=True) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\asdf\envs\stackoverflow\lib\site-packages\hglib\client.py", line 1384, in status raise ValueError('cannot specify both rev and change') ValueError: cannot specify both rev and change Why can't we specify both rev and change ? In answer to

How do you search across multiple mercurial repositories

别说谁变了你拦得住时间么 提交于 2019-12-12 02:32:53
问题 I'm setting up multiple Mercurial repositories for all of our different projects, probably close to 50. Is there a way to search across multiple repos for a specific file or string? For example, say that a database column is renamed, how would I search each repository for any reference to the old column name? I know that I can do this for each repository individually, but if you've got 50 repositories, that can be quite time consuming? If it's not possible, are there any best practices then

When does a new head is created in a repository?

坚强是说给别人听的谎言 提交于 2019-12-12 02:23:52
问题 I'm assuming this is kind of weird question, but I am not sure when exactly a new head is created to a repository, for example in this question : Explain which line(s) cause the number of heads to change in any of the referenced repositories 1: /home/user> hg clone http://remoteserver/mainrepository clone1 2: /home/user> hg clone http://remoteserver/mainrepository clone2 3: /home/user> cd clone1 4: /home/user/clone1> echo one > a.txt # Create a new file “a.txt” containing “one” 5: /home/user

How to download Google Code via Mercurial

帅比萌擦擦* 提交于 2019-12-12 01:47:06
问题 I am new to Android and I want to downaload source code from this site: http://code.google.com/p/apv/source/ of an Android PDF viewer. I know how to download source from SVN but I have no idea what hg clone is. Can any one tell me how can I download this open source project? 回答1: Download and install Mercurial. You will have a command line client: hg . Now you can get any sourcecode via hg clone : hg clone https://code.google.com/p/apv/ For a faster introduction to Mercurial, see http:/

directory '/var/lib/mercurial-server/' is missing

回眸只為那壹抹淺笑 提交于 2019-12-11 23:57:33
问题 After reinstall mercurial-server, directory '/var/lib/mercurial-server/' missing apt-get purge mercurial-server sudo rm -rf /var/lib/mercurial-server sudo apt-get update sudo apt-get install mercurial mercurial-server i try: shabak@Ubuntu:/etc/mercurial-server$ cd /var/lib/mercurial-server -bash: cd: /var/lib/mercurial-server: No such file or directory I can't find the folder 'repos'. Please help! 回答1: The install script creates and initializes that directory only if the "hg" user doesn't

Netbeans Mercurial plugin doesn't have addremove option in GUI menus

淺唱寂寞╮ 提交于 2019-12-11 23:54:01
问题 I use Netbeans for development and have been doing my Mercurial operations on the command line even though Netbeans has a Mercurial plugin to add various Mercurial commands as GUI options. One of the things I always do when I add or delete a file is run hg addremove But the Netbeans Mercurial plugin doesn't offer this as an option. The only operations it offers are: Status Diff Commit ---- Resolve Conflicts ---- Show History ---- Revert ---- Mercurial Settings So my question is whether it is

Make TortoiseHG use my Python installation

人盡茶涼 提交于 2019-12-11 23:32:15
问题 I created some python hooks for Mercurial that use some external libraries (namely jira-python). In Linux, I install the packages using pip. In Windows, however, Mercurial comes with a bundled version of Python. My hooks fail when I run them because the external packages are not installed. I want to make Mercurial / TortoiseHG use my Python installation so I can control its environment. How can I do that? 回答1: You can install Mercurial package for Python: Mercurial 2.4 Python 2.7 package -

eclipse mercurial plugin display arrow instead of changeset

China☆狼群 提交于 2019-12-11 19:18:23
问题 How can set eclipse to display an arrow with a number of commits till last pull instead of a changset near a project name? 回答1: If you're running a recent version of MercurialEclipse, by default, you should not see the revision number nor hash. Instead you will see current tag (if any) and the number of "unpublished" changesets with arrow. This usually corresponds to the number of "outgoing" changesets. Here is the project home: https://bitbucket.org/mercurialeclipse/main/wiki/Home, and here