<br><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;"><br>
<br>
Some questions:<br>
1. Your repository is on an NFS mounted disk and hence the &quot;.hg&quot;<br>
folder too is on the remote disk?</blockquote><div><br>Yes.<br>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
2. Suppose, we come up with an extension &quot;hg edit&quot;, should it store<br>
the edit information in the remote &quot;.hg&quot; or create it on the local<br>
disk (make it configurable)<br>
</blockquote><div><br><br>Making it configurable would probably provide the best of both worlds. But by default, I expect that my &quot;.hg&quot; directory would be on NFS too. The reason is that I want to version my own changes, and once my code is ready, I&#39;ll get it reviewed by another devloper and then push to the remote repository. Before pushing to the remote repository, I&#39;d prefer to have the versioning information in .hg to be safe -&nbsp; hence I&#39;ll keep the .hg on NFS too.<br>
<br>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
A simple hack I can think of:<br>
1. Have a shell alias (or a new hg command) to write the edited file<br>
path into a file<br>
2. On hg commit, read the file with edited file paths and commit only<br>
those files (by passing the files as arguments to the hg commit)<br>
<br>
would the above approach work for you?<br>
</blockquote><div><br><br>Yes, it will. Seems pretty simple, isn&#39;t it ?&nbsp; I&#39;d definitely prefer to have a new hg command rather than a shell alias for better integration with the rest of &#39;hg&#39;.<br><br>One more facility I&#39;d like is that the files controlled by mercurial should be read-only by default - they should become writable only when I do a &#39;hg edit&#39; on them. That way, I don&#39;t accidentally modify any file unless I do a &#39;hg edit&#39; on it. This is also similar to what perforce does.<br>
<br><br>- Mohit<br><br>&nbsp;</div></div><br>