<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://gwiki3.thatlinuxbox.com/index.php?action=history&amp;feed=atom&amp;title=Setting_up_a_Repository</id>
		<title>Setting up a Repository - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://gwiki3.thatlinuxbox.com/index.php?action=history&amp;feed=atom&amp;title=Setting_up_a_Repository"/>
		<link rel="alternate" type="text/html" href="http://gwiki3.thatlinuxbox.com/index.php?title=Setting_up_a_Repository&amp;action=history"/>
		<updated>2026-04-06T13:34:07Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.27.5</generator>

	<entry>
		<id>http://gwiki3.thatlinuxbox.com/index.php?title=Setting_up_a_Repository&amp;diff=5310&amp;oldid=prev</id>
		<title>Dirk: what to do with an existing hgrc file</title>
		<link rel="alternate" type="text/html" href="http://gwiki3.thatlinuxbox.com/index.php?title=Setting_up_a_Repository&amp;diff=5310&amp;oldid=prev"/>
				<updated>2009-05-16T08:20:20Z</updated>
		
		<summary type="html">&lt;p&gt;what to do with an existing hgrc file&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 08:20, 16 May 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l32&quot; &gt;Line 32:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 32:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Setting the Permissions ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Setting the Permissions ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The repository will now be owned by the current user and not be usable from any user &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;accounts&lt;/del&gt;. Therefore, do this:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The repository will now be owned by the current user and not be usable from any user &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;account&lt;/ins&gt;. Therefore, do this:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;chmod -R g+rws newname&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;chmod -R g+rws newname&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l56&quot; &gt;Line 56:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 56:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;allow_archive = gz&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;allow_archive = gz&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;If the &amp;lt;tt&amp;gt;hgrc&amp;lt;/tt&amp;gt; file already exists, remove whatever it contains (usually a &amp;lt;tt&amp;gt;[path]&amp;lt;/tt&amp;gt; section) and start over fresh with the above content.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Obviously, you should fill in something sensible for the description and the name!&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Obviously, you should fill in something sensible for the description and the name!&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Dirk</name></author>	</entry>

	<entry>
		<id>http://gwiki3.thatlinuxbox.com/index.php?title=Setting_up_a_Repository&amp;diff=5309&amp;oldid=prev</id>
		<title>Dirk: Setting up a Mercurial Repository on cvs.geeklog.net</title>
		<link rel="alternate" type="text/html" href="http://gwiki3.thatlinuxbox.com/index.php?title=Setting_up_a_Repository&amp;diff=5309&amp;oldid=prev"/>
				<updated>2009-05-16T08:13:12Z</updated>
		
		<summary type="html">&lt;p&gt;Setting up a Mercurial Repository on cvs.geeklog.net&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''Note:''' This requires you to be logged in using the hosting account. It does ''not'' work with a user account.&lt;br /&gt;
&lt;br /&gt;
== Creating the Repository ==&lt;br /&gt;
&lt;br /&gt;
First of all:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;cd /cvsroot/hg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All Mercurial repositories are located in this directory.&lt;br /&gt;
&lt;br /&gt;
The following instructions use &amp;lt;tt&amp;gt;newname&amp;lt;/tt&amp;gt; for the name of the new repository.&lt;br /&gt;
&lt;br /&gt;
=== Empty Repository ===&lt;br /&gt;
&lt;br /&gt;
For a completely new and empty repository, simply do&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;hg init newname&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Cloning an existing Repository ===&lt;br /&gt;
&lt;br /&gt;
If you want to set up a repository that is a clone of an already existing repository (&amp;lt;tt&amp;gt;oldname&amp;lt;/tt&amp;gt;), do&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;hg clone -U oldname newname&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note the &amp;lt;tt&amp;gt;-U&amp;lt;/tt&amp;gt; (uppercase 'U') option. It creates a clone without checking out the files (as we don't need any checked-out files in a repository on this server).&lt;br /&gt;
&lt;br /&gt;
=== Uploading an existing Repository ===&lt;br /&gt;
&lt;br /&gt;
Use &amp;lt;tt&amp;gt;scp&amp;lt;/tt&amp;gt; to upload an existing repository. You don't need to include the checked-out files, so you effectively only need the &amp;lt;tt&amp;gt;.hg&amp;lt;/tt&amp;gt; directory. You could create a local clone using &amp;lt;tt&amp;gt;hg clone -U&amp;lt;/tt&amp;gt; before the upload.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Setting the Permissions ==&lt;br /&gt;
&lt;br /&gt;
The repository will now be owned by the current user and not be usable from any user accounts. Therefore, do this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;chmod -R g+rws newname&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Ignore the &amp;quot;Operation not permitted&amp;quot; messages. Check that the permissions for the directory are now: &amp;lt;tt&amp;gt;drwxrwsr-x&amp;lt;/tt&amp;gt; (note the '&amp;lt;tt&amp;gt;s&amp;lt;/tt&amp;gt;').&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Creating a hgrc file ==&lt;br /&gt;
&lt;br /&gt;
Inside the &amp;lt;tt&amp;gt;newname/.hg/&amp;lt;/tt&amp;gt; directory, create a new file &amp;lt;tt&amp;gt;hgrc&amp;lt;/tt&amp;gt; (no leading dot!) that contains this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[trusted]&lt;br /&gt;
users = geeklog2&lt;br /&gt;
groups = users&lt;br /&gt;
&lt;br /&gt;
[web]&lt;br /&gt;
baseurl = http://project.geeklog.net/cgi-bin/hgweb.cgi&lt;br /&gt;
style = gitweb&lt;br /&gt;
contact = contact-us(AT)lists.geeklog.net&lt;br /&gt;
description = (description goes here)&lt;br /&gt;
name = (repository name goes here)&lt;br /&gt;
allow_archive = gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Obviously, you should fill in something sensible for the description and the name!&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;allow_archive&amp;lt;/tt&amp;gt; setting is optional - it allows downloading the repository as a .gz file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Hooking it up with the Repository Viewer ==&lt;br /&gt;
&lt;br /&gt;
* Open the file &amp;lt;tt&amp;gt;~/public_html/www/cgi-bin/hgweb.config&amp;lt;/tt&amp;gt;&lt;br /&gt;
* Add a line &amp;lt;pre&amp;gt;newname = /cvsroot/hg/newname&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Call up the [http://project.geeklog.net/cgi-bin/hgwebdir.cgi/ viewer] and check that the new repository is listed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Internals]]&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>	</entry>

	</feed>