On Mon, Jun 2, 2008 at 11:10 AM, Mathieu Clabaut <<a href="mailto:mathieu.clabaut@gmail.com">mathieu.clabaut@gmail.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br><br> My problem is the following. When pushing I've got an error because of quota exceeded on remote:/tmp.<br> So my question is : How can I force mercurial to use another path than /tmp on remote host when unbundling the data received ?<br>
<br> Thank you very much for any direction.</blockquote><div><br><br>With some help on IRC I manage the following.<br><br>On remote global hgrc:<br><div style="margin-left: 40px;"><span style="font-family: courier new,monospace;">[hooks]</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">pre-serve.tmpdir = python:hgenviron.settmpdir</span><br style="font-family: courier new,monospace;"></div><br><br>In $PYTHONPATH, I put the following henviron.py file :<br>
<br><div style="margin-left: 40px;"><span style="font-family: courier new,monospace;">import os</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">#see <a href="http://docs.python.org/lib/module-tempfile.html">http://docs.python.org/lib/module-tempfile.html</a></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">def settmpdir(ui, repo, hooktype, node=None, source=None, **kwargs):</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> os.environ["TMPDIR"] = "/home/tmp"</span><br>
</div><br> <br>It works well....<br><br>As a side note, hgrc manpage does'nt look up to date, as mercurial failed if I only expect the first 3 arguments for settmpdir hook.<br><br>-mathieu<br><br></div></div><br>