Tag Info

Hot answers tagged

44

Look. You must do in into Location tag: <VirtualHost *:8080> ... <Location /> Deny from all #Allow from (You may set IP here / to access without password) AuthUserFile /usr/local/etc/httpd/users AuthName authorization AuthType Basic Satisfy Any # (or all, if IPs specified ...


18

Yes, globbing expansion is alphabetical. From the Bash man page: Pathname Expansion After word splitting, unless the -f option has been set, bash scans each word for the characters *, ?, and [. If one of these characters appears, then the word is regarded as a pattern, and replaced with an alphabetically sorted list of file names ...


13

If you're concerned about it being on a public-facing server but would like access from anywhere, you should consider having your developers use a client-based VPN to log into your network remotely to access an internal source control server.


12

Some time back google did an analysis of Git and Mercurial. You can read it online on http://code.google.com/p/support/wiki/DVCSAnalysis


11

Well, I started with this tutorial. After I've finished that I made the following additional changes on the server (Windows 2008): Configured IIS to use SSL; Disabled anonymous authentication for the site; Enabled Basic and Windows authentication for the site; Configured NTFS permissions on the repository folder. Also need to add the following lines to ...


10

I am using etckeeper on both debian and ubuntu. It's painless. Just do a sudo etckeeper init and you're done! Actually, you may need to edit /etc/etckeeper/etckeeper.conf to check that hg is selected as your VCS command. But that's all that you need to do. Once that is done etckeeper will begin tracking every change that you make to files in /etc and ...


7

Bash maintains a cache of locations of executables in $PATH. You had hg in /usr/bin at some point, and ran it from that shell. Now you've removed /usr/bin/hg. You need to tell your running shell to forget this location: hash hg A new shell wouldn't have this problem, since the cache isn't shared between shell instances.


6

I only use Git, so I wil try at least to help you with that: If you do not see any trouble administrating your repos via the command line, gitosis should do the trick pretty nicely. If you do really need a web interface, you could take a look at repo.or.cz (http://repo.or.cz/w/girocco.git) or gitorious (http://gitorious.org/gitorious). Repo.or.cz is ...


6

Ok, I wasn't far off and I found a great resource which steps through the exact steps. http://www.boredworkers.com/2009/08/24/script-tips-ssh-key-for-apache/ > sudo mkdir /var/www/.ssh > sudo chown -R apache:nobody /var/www/.ssh > sudo -u apache ssh-keygen -t rsa I think I need to investigate the correct switches to use instead of relying on ...


6

On my system (Ubuntu Karmic), besides setting VCS="hg", I had to edit /etc/etckeeper/etckeeper.conf and add the following or else etckeeper commit would complain about a missing username: HG_COMMIT_OPTIONS="-u etckeeper@aeolus" Also, in /etc/.hg/hgrc, I added the following: [ui] username = root@aeolus That way, when I do a commit through etckeeper, the ...


6

http://mercurial.selenic.com/wiki/CGIinstall says under "Setup a cgi script to refer to your repository" Copy the hgweb.cgi script from the mercurial sources to /var/www/cgi-hg/index.cgi So it appears you need to download the source version to get that file.


6

This is not an Apache change, but you have to set it in the Mercurial repository itself. You can setup hooks that run a script before accepting a push into your repository. In the scripts triggered by the pretxncommit or pretxnchangegroup hooks you can check if those changes create a new head and refuse them if they do. See the chapter on hooks in the Hg ...


6

You may want to read this question on stackoverflow: What are the relative strengths and weaknesses of Git, Mercurial, and Bazaar?


6

You don't want to have the [web] section in the hgweb.config file. Instead you want to an individual [web] config in each repository, using the files /home/mercurial/repo01/.hg/hgrc /home/mercurial/repo02/.hg/hgrc etc... Myself I've found the publishing repositories wiki page to be a good tutorial.


6

I am running Apache2 on ubuntu 10.04 — same problem and thanks for the solution. I found that I had to put the configuration in /etc/apache2/apache2.conf You can generate the username and password using htpasswd. New file: $ htpasswd -c /srv/auth/.htpasswd squire To append to existing file: $ htpasswd -b /srv/auth/.htpasswd squire2 tickleme2


6

I did a four part blog post for set up of Mercurial on IIS with Active Directory authentication and using hgwebdir.cgi for push authorization. It goes over the whole process of: Setting up Mercurial's hg web interface on IIS. Setting up the IIS authentication for Mercurial so that only users authorized by the active directory (i.e. security groups/users) ...


6

Maybe you'd like to give RhodeCode http://rhodecode.org/ a try.


6

SCM-Manager: The easiest way to share and manage your Git, Mercurial and Subversion repositories over http. Very easy installation No need to hack configuration files, SCM-Manager is completely configureable from its Web-Interface No Apache and no database installation is required Central user, group and permission management Out of the ...


5

RhodeCode is a great Bitbucket-like tool you can install yourself. I like it: it's under heavy development but is already very feature full. I recently installed it for a client and they see good performance with it. They are ~65 developers and have ~50 machines in a build farm that pull from the RhodeCode server.


5

I think Apache is a great way of sharing hg repositories. Not only does the hgweb.wsgi script give one the possibility of running multiple repositories, but it allows developers to conveniently cross-reference the project source code by path or revision from a definitive source. The following procedure will give an easy way of publishing a repository, and ...


5

Well, this Redmine feature request gives it away: Currently, new changeset information is only fetched when you view the repository. So if you update an issue, and mention a revision in it, it doesn't get hyperlinked until someone has viewed the repository. While I did not find a ready-made post-commit hook to update the Redmine with new changesets, ...


5

In short, yes. You can move the .hg repository folder and then pull a new copy of your source.


5

If you're looking for some intergrated system that can work on windows, unix, and authenticate to AD try out RhodeCode http://rhodecode.org. It's kind of local instance of bitbucket that serves repositories. It comes with permission system and easy user management.


5

This situation is fairly well documented. Check out the "Collaborating with other people" section of the very useful HG Book. In short, you can configure ssh access to the Mercurial repository, and limit access to specific users. Some more reference guides: Multiple Committers Guide TortoiseHg


5

I think what you are likely missing is that it is perfectly allowable to create a .hg/hgrc file inside each repository, and those files can contain allow_push and allow_read entries.


5

There is an allow_read directive that can be added to a repository hgrc that works the same way as allow_push. If specified, and the user accessing the hgwebdir CGI script is not in the list, the project doesn't even show up at the index page.


5

Tip is the most recent changeset in the repository. Default is a branch. Tip is a special Tag (a named changeset) which always refers to the most recently changed Head.


5

From the answer almost the same question at stackoverflow.com (by David Tischler): Add the following to the [ui]-section of the mercurial.ini in your home directory: [ui] ssh = tortoiseplink.exe -ssh -i "C:\Users\UserName\mykey.ppk" Or if you want to specify your ssh username, add [ui] ssh = tortoiseplink.exe -ssh -i "C:\Users\UserName\mykey.ppk" -l ...


4

From the hgrc manpage, put the following in your configuration file: [web] allow_archive = bz2, gz, zip



Only top voted, non community-wiki answers of a minimum length are eligible