Ok...<br>I certainly can do a bruteforce search like:<br><br style="font-family: courier new,monospace;"><div style="margin-left: 40px;"><span style="font-family: courier new,monospace;">hg log --template &#39;{node}\n&#39; myfile | while read ver; do hg cat -r $ver myfile &gt; /tmp/hgcat.$$; cmp /tmp/hgcat.$$ myreferencefile &amp;&amp; echo &quot;found $ver&quot;;&nbsp; done
</span><br></div><br>But I wondered if there was a quicker mean by using indexes and hashes to find the file...<br>I guess not, and I will stick to the aforementioned script.<br><br>Thank you for your advice.<br><br>-mathieu
<br><br><br><div><span class="gmail_quote">On 7/9/07, <b class="gmail_sendername">Dustin Sallings</b> &lt;<a href="mailto:dustin@spy.net">dustin@spy.net</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style=""><span class="q"><br><div><div>On Jul 9, 2007, at 1:39, Mathieu Clabaut wrote:</div><br><blockquote type="cite"><span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">
&nbsp;Imagine I&#39;ve a mercurial repo and a file that once was&nbsp; part of a revision of this repo. Is there a (hopefully simple) mean to retrive the revision(s) associated to this file ?<br></span></blockquote></div><br></span>
<div><span style="white-space: pre;">        </span>I don&#39;t know exactly what your goal is, but ``hg log [filename]&#39;&#39; will itemize all of the changesets that touched the file at that path.&nbsp; You can then use ``hg update&#39;&#39; or ``hg cat&#39;&#39; to see what things looked like on those revisions.
</div></div></blockquote></div><br>