<?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>Spoof&#039;s blog &#187; mercurial</title>
	<atom:link href="http://spoofa.info/tag/mercurial/feed/" rel="self" type="application/rss+xml" />
	<link>http://spoofa.info</link>
	<description>...about martian&#039;s and penguin&#039;s life</description>
	<lastBuildDate>Tue, 28 Jul 2009 21:37:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Mercurial tips</title>
		<link>http://spoofa.info/2008/07/11/mercurial-tips/</link>
		<comments>http://spoofa.info/2008/07/11/mercurial-tips/#comments</comments>
		<pubDate>Fri, 11 Jul 2008 12:05:06 +0000</pubDate>
		<dc:creator>spoof</dc:creator>
				<category><![CDATA[devel]]></category>
		<category><![CDATA[mercurial]]></category>

		<guid isPermaLink="false">http://spoofa.info/?p=91</guid>
		<description><![CDATA[Чтобы сплитнуть репозитарий или, например, вытащить какую-нибудь поддиректорию в корень нового репозитария в делаем:


hg init new_repo
В этой же директории где лежит и старый репозитарий old_repo, который требуется разделить.

Создаем файл filemap.txt, в котором задаем те директории, которые надо включить в новый репозитарий:
exclude &#8220;*&#8221;
rename &#8220;subdir&#8221; &#8220;.&#8221;
include &#8220;subdir&#8221;
Т.е. игнорируем все файлы из old_repo, переименовываем subdir в &#8220;.&#8221;, чтобы [...]]]></description>
			<content:encoded><![CDATA[<p>Чтобы сплитнуть репозитарий или, например, вытащить какую-нибудь поддиректорию в корень нового репозитария в делаем:</p>
<ul>
<li>
<div class="codesnip-container" >hg init new_repo</div>
<p>В этой же директории где лежит и старый репозитарий old_repo, который требуется разделить.
</li>
<li>Создаем файл filemap.txt, в котором задаем те директории, которые надо включить в новый репозитарий:
<div class="codesnip-container" >exclude &#8220;*&#8221;<br />
rename &#8220;subdir&#8221; &#8220;.&#8221;<br />
include &#8220;subdir&#8221;</div>
<p>Т.е. игнорируем все файлы из old_repo, переименовываем subdir в &#8220;.&#8221;, чтобы эта директория стала корнем new_repo и включаем ее в копирование</li>
<li>Выполняем команду:
<div class="codesnip-container" >hg convert &#8211;filemap filemap.txt old_repo/ new_repo/</div>
</li>
<li>
<div class="codesnip-container" >cd new_repo &#038;&#038; hg update</div>
</li>
</ul>
<p>Собственна все, далее можно из old_repo удалять subdir:</p>
<div class="codesnip-container" >cd old_repo &#038;&#038; hg remove subdir</div>
]]></content:encoded>
			<wfw:commentRss>http://spoofa.info/2008/07/11/mercurial-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
