<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Linux Blog &#187; mercurial</title>
	<atom:link href="http://www.rz0r.net/tag/mercurial/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rz0r.net</link>
	<description>Otro blog mas de linux</description>
	<lastBuildDate>Tue, 23 Aug 2011 05:26:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Google Code ahora con soporte para Mercurial.</title>
		<link>http://www.rz0r.net/2009/06/google-code-ahora-con-soporte-para-mercurial/</link>
		<comments>http://www.rz0r.net/2009/06/google-code-ahora-con-soporte-para-mercurial/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 04:52:24 +0000</pubDate>
		<dc:creator>rz0r</dc:creator>
				<category><![CDATA[mercurial]]></category>
		<category><![CDATA[programing]]></category>
		<category><![CDATA[scm]]></category>

		<guid isPermaLink="false">http://www.rz0r.net/?p=120</guid>
		<description><![CDATA[Una muy buena eleccion de google code al incluir el soporte para mercurial en mi opinion personal es mas eficiente que otros VCS y DVCS(sistemas de control de version distribuidos) la transicion es mas sencilla viniendo de otros VCS, portable funciona en freebsd/solaris/linux/windows y puedes usar ssh o http para la comunicacion con el repositorio. [...]]]></description>
			<content:encoded><![CDATA[<img style='float: left; margin-right: 10px; border: none;' src='http://www.gravatar.com/avatar.php?gravatar_id=90e8a2b5c540d915d4179fab9eeaf31d&amp;default=http://en.gravatar.com/avatar/90e8a2b5c540d915d4179fab9eeaf31d?s=80&r=any' alt='No Gravatar' width=40 height=40/><p>Una muy buena eleccion de google code al incluir el soporte para mercurial en mi opinion personal es mas eficiente que otros VCS y DVCS(sistemas de control de version distribuidos) la transicion es mas sencilla viniendo de otros VCS, portable funciona en freebsd/solaris/linux/windows  y puedes usar ssh o http para la comunicacion con el repositorio.</p>
<p>Segun google Mercurial tuvo mejor desempeño que Git a como se puede ver en su <a href="http://code.google.com/p/support/wiki/DVCSAnalysis" target="blank">analisis</a></p>
<p>Tambien se puede comparar y ver un analisis mas detallado entre los DVCS (hg/bazzar/git) en el sitio de <a href="http://www.python.org/dev/peps/pep-0374/" target="blank">Python</a>.</p>
<p>para probarlo he creado <a href="http://code.google.com/p/jms-scripts/" target="blank">mi repositorio</a> y funciona muy bien. aunque por el momento he estado usando <a href="http://www.bitbucket.org" target="blank">Bitbucket</a> probablemente me cambie a google code por el 1GB de espacio ofrecido.</p>
<p>Referencia:</p>
<p><a href="http://hgbook.red-bean.com/" target="blank">http://hgbook.red-bean.com/</a><br />
<a href="http://google-code-updates.blogspot.com/2009/05/mercurial-now-available-to-all-open.html" target="blank">http://google-code-updates.blogspot.com/2009/05/mercurial-now-available-to-all-open.html</a><br />
<a href="http://betterexplained.com/articles/intro-to-distributed-version-control-illustrated/" target="blank">http://betterexplained.com/articles/intro-to-distributed-version-control-illustrated/</a><br />
<a href="http://betterexplained.com/articles/a-visual-guide-to-version-control/" target="blank">http://betterexplained.com/articles/a-visual-guide-to-version-control/</a></p>
<div class="bottomcontainerBox" style="">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.rz0r.net%2F2009%2F06%2Fgoogle-code-ahora-con-soporte-para-mercurial%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://www.rz0r.net/2009/06/google-code-ahora-con-soporte-para-mercurial/"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.rz0r.net/2009/06/google-code-ahora-con-soporte-para-mercurial/"  data-text="Google Code ahora con soporte para Mercurial." data-count="horizontal" data-via="rz0r">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://www.rz0r.net/2009/06/google-code-ahora-con-soporte-para-mercurial/" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://www.rz0r.net/2009/06/google-code-ahora-con-soporte-para-mercurial/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.rz0r.net/2009/06/google-code-ahora-con-soporte-para-mercurial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configurando Mercurial hgwebdir + Apache + pygments</title>
		<link>http://www.rz0r.net/2008/12/configurando-mercurial-hgwebdir-apache-pygments/</link>
		<comments>http://www.rz0r.net/2008/12/configurando-mercurial-hgwebdir-apache-pygments/#comments</comments>
		<pubDate>Mon, 29 Dec 2008 16:50:20 +0000</pubDate>
		<dc:creator>rz0r</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[planeta]]></category>
		<category><![CDATA[programing]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[scm]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[mercurial]]></category>
		<category><![CDATA[Pygments]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.rz0r.net/?p=54</guid>
		<description><![CDATA[Para los ultimos proyectos que he trabajado he venido usando Mercurial para el control de version (SCM) es muy versatil, ha sido portado a diferentes plataformas se ejecuta en Linux/Windows/FreeBSD/Solaris, esta hecho en python y es similar a Git ademas de ser utilizado por diferentes proyectos grandes como Netbeans y otros. Este mini-howto esta basado [...]]]></description>
			<content:encoded><![CDATA[<img style='float: left; margin-right: 10px; border: none;' src='http://www.gravatar.com/avatar.php?gravatar_id=90e8a2b5c540d915d4179fab9eeaf31d&amp;default=http://en.gravatar.com/avatar/90e8a2b5c540d915d4179fab9eeaf31d?s=80&r=any' alt='No Gravatar' width=40 height=40/><p>Para los ultimos proyectos que he trabajado he venido usando Mercurial para el control de version (SCM) es muy versatil, ha sido portado a diferentes plataformas se ejecuta en Linux/Windows/FreeBSD/Solaris, esta hecho en python y es similar a Git ademas de ser utilizado por diferentes proyectos grandes como Netbeans y <a href="http://www.selenic.com/mercurial/wiki/index.cgi/ProjectsUsingMercurial" target="_blank">otros</a>.</p>
<p>Este mini-howto esta basado en la documentacion encontrada en la <a href="http://www.selenic.com/mercurial/wiki/index.cgi/HgWebDirStepByStep" target="_blank">wiki de Mercurial</a> con algunas modificaciones para adaptarlo a la distro que uso(Fedora 10) y agregando el uso de pygments para el color de la sintaxis.</p>
<p>lo necesario para iniciar:</p>
<ul>
<li>Apache web server</li>
<li>Mercurial 1.1</li>
<li>Pygments</li>
<li>Python 2.5</li>
</ul>
<p>la version de mercurial que viene con Fedora 10 al momento de escribir esto era 1.0.2 por lo que tuve que descargar la nueva version e instalarla, si la nueva version ya se encuentra en los repositorio solo habra que instalar normalmente con yum.</p>
<pre class="brush: python; title: ; notranslate">
wget http://www.selenic.com/mercurial/release/mercurial-1.1.1.tar.gz
tar xzvf mercurial-1.1.1.tar.gz
cd mercurial-1.1.1
# Editamos el archivo Makefile
# cambiamos PREFIX=/usr/local a  PREFIX=/usr
# si python esta bien instalado y sus dependencias ejecutamos

make all;  make install;  hg version
# se mostrara algo similar a esto &quot;Mercurial Distributed SCM (version 1.1+20081203)&quot;

# loggeado como usuario root
yum install -y python-pygments httpd
</pre>
<p>Ahora que ya tenemos todo lo necesario configuraremos el cgi de Mercurial y los repositorios.</p>
<pre class="brush: python; title: ; notranslate">
# siempre como root creamos los siguiente directorios
mkdir -p /var/www/hg/repos
</pre>
<p>Creamos el archivo de configuracion &#8220;hgweb.config&#8221; en /var/www/hg/</p>
<pre class="brush: python; title: ; notranslate">
[collections]
repos/ = repos/
[web]
style = gitweb
</pre>
<p>copiamos el cgi &#8220;hgwebdir.cgi&#8221; en /var/www/hg/ y le cambiamos los permisos</p>
<pre class="brush: python; title: ; notranslate">
chmod a+x hgwebdir.cgi
</pre>
<p>ahora configuramos el cgi en Apache, creamos un archivo de configuracion &#8220;hg.conf&#8221; en /etc/httpd/conf.d</p>
<pre class="brush: python; title: ; notranslate">
ScriptAliasMatch ^/hg(.*) /var/www/hg/hgwebdir.cgi$1
&lt;Directory /var/www/hg&gt;
Options ExecCGI FollowSymLinks
AllowOverride None
&lt;/Directory&gt;
</pre>
<p>Predeterminadamente el web server Apache que viene en Fedora incluira todas los archivos de configuraciones en /etc/httpd.conf.d/ con el sufijo &#8220;.conf&#8221;</p>
<p>comprobamos la configuracion con</p>
<pre class="brush: python; title: ; notranslate">
# esto debera retornar un mensaje de 'Sintaxis is OK'
/usr/sbin/httpd -t
</pre>
<p>Ahora queda configurar los repositorios, creamos un proyecto llamado &#8220;zf-test&#8221;</p>
<pre class="brush: python; title: ; notranslate">
mkdir zf-test
hg init
hg add
hg ci -m &quot;repositorio inicializado&quot;
cd ..
mv -r zf-test /var/www/hg/repos/
</pre>
<p>Una vez inicializado el repositorio y agregado los archivo lo movemos a al directorio de los repositorios y configuramos el repositorio del proyecto dentro del directorio .hg creamos un archivo llamado &#8220;hgrc&#8221;</p>
<pre class="brush: python; title: ; notranslate">
[web]
contact = JM
description = Aplicacion de Prueba Zend Framework.

style = gitweb
allow_push = *
allow_archive = zip gz bz2
push_ssl = false

pygments_style = autumn

[extensions]
hgext.highlight =
</pre>
<p>La configuracion indica lo siguiente style es la plantilla que usar hgwebdir para mostrar el directorio del proyecto en el browser, &#8220;allow_push = *&#8221; permite hacer cambios a cualquiera, esto esta asi porque esta pensado para funcionar en una intranet o red privada, si se hiciera publico se podria implementar las extensiones de mercurial para ACL y autenticacion via http con apache ademas de usar SSL para las conexiones y restringir los usuario que pueden hacer &#8220;push&#8221; o escribir en el repositorio.</p>
<p>La opcion allow_archive permite bajar el repositorio del proyecto completo en un archivo comprimido en formato zip, bz2 o gzip, la opcion hgext.highlight activa el coloreado de sintaxis para los archivos y el diff  utilizando pygments.</p>
<p>La libreria pygments cuenta con varios esquemas el usado aqui es &#8220;autumn&#8221; el usado por default por mercurial es &#8220;colorful&#8221;</p>
<p>El cgi hgwebdir puede usar otras plantillas que vienen con mercurial que son: gitweb, coal, monoblue, spartan y paper.</p>
<p>el paso mas importante para finalizar, para permitir la escritura y ejecucion del cgi el propietario de los repos y el cgi debe ser el usuario del web server Apache, en este caso es &#8220;apache&#8221;</p>
<pre class="brush: python; title: ; notranslate">
cd /var/www
chown apache:apache -R hg
</pre>
<p>He aqui algunos screenshots del hgwebdir usando la extension pygments corriendo en Apache.</p>
<div id="attachment_78" class="wp-caption alignleft" style="width: 310px"><a href="http://www.rz0r.net/wp-content/uploads/2008/12/mercurial-repositories-index.png"><img class="size-medium wp-image-78" title="mercurial-repositories-index" src="http://www.rz0r.net/wp-content/uploads/2008/12/mercurial-repositories-index-300x221.png" alt="mercurial-repositories-index" width="300" height="221" /></a><p class="wp-caption-text">mercurial-repositories-index</p></div>
<div id="attachment_83" class="wp-caption alignnone" style="width: 310px"><a href="http://www.rz0r.net/wp-content/uploads/2008/12/summary.png"><img class="size-medium wp-image-83" title="summary" src="http://www.rz0r.net/wp-content/uploads/2008/12/summary-300x221.png" alt="Sumario del repositorio del proyecto" width="300" height="221" /></a><p class="wp-caption-text">Sumario del repositorio del proyecto</p></div>
<div id="attachment_79" class="wp-caption alignnone" style="width: 310px"><a href="http://www.rz0r.net/wp-content/uploads/2008/12/files_display.png"><img class="size-medium wp-image-79" title="files_display" src="http://www.rz0r.net/wp-content/uploads/2008/12/files_display-300x221.png" alt="Vista de archivos en el repositorio" width="300" height="221" /></a><p class="wp-caption-text">Vista de archivos en el repositorio</p></div>
<div id="attachment_82" class="wp-caption alignnone" style="width: 310px"><a href="http://www.rz0r.net/wp-content/uploads/2008/12/pygments_in_action.png"><img class="size-medium wp-image-82" title="pygments_in_action" src="http://www.rz0r.net/wp-content/uploads/2008/12/pygments_in_action-300x224.png" alt="Pygments en accion" width="300" height="224" /></a><p class="wp-caption-text">Pygments en accion</p></div>
<div id="attachment_81" class="wp-caption alignnone" style="width: 310px"><a href="http://www.rz0r.net/wp-content/uploads/2008/12/pygments2.png"><img class="size-medium wp-image-81" title="pygments2" src="http://www.rz0r.net/wp-content/uploads/2008/12/pygments2-300x221.png" alt="pygments diff" width="300" height="221" /></a><p class="wp-caption-text">pygments diff</p></div>
<div id="attachment_80" class="wp-caption alignnone" style="width: 310px"><a href="http://www.rz0r.net/wp-content/uploads/2008/12/mercurial_graph.png"><img class="size-medium wp-image-80" title="mercurial_graph" src="http://www.rz0r.net/wp-content/uploads/2008/12/mercurial_graph-300x221.png" alt="Mercurial Visual Graph extension" width="300" height="221" /></a><p class="wp-caption-text">Mercurial Visual Graph extension</p></div>
<p>Referencia:</p>
<p><a href="http://www.selenic.com/mercurial/wiki/index.cgi/Mercurial" target="_blank">Mercurial</a></p>
<div class="bottomcontainerBox" style="">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.rz0r.net%2F2008%2F12%2Fconfigurando-mercurial-hgwebdir-apache-pygments%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://www.rz0r.net/2008/12/configurando-mercurial-hgwebdir-apache-pygments/"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.rz0r.net/2008/12/configurando-mercurial-hgwebdir-apache-pygments/"  data-text="Configurando Mercurial hgwebdir + Apache + pygments" data-count="horizontal" data-via="rz0r">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://www.rz0r.net/2008/12/configurando-mercurial-hgwebdir-apache-pygments/" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://www.rz0r.net/2008/12/configurando-mercurial-hgwebdir-apache-pygments/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.rz0r.net/2008/12/configurando-mercurial-hgwebdir-apache-pygments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

