Import patches for the specified revision
Kevin Bullock
kbullock+mercurial at ringworld.org
Fri Dec 16 04:04:21 UTC 2011
On 15 Dec 2011, at 8:27 PM, nemo wrote:
> I'm developing a website on which users can browser their hg repos and
> edit source codes on line, just like what github can do.
>
> In case multi users edit the same file at the same time, I must keep my
> hand off the working copy. So I need the --bypass option.
Stop right there. I'm pretty sure what GitHub does when you click the 'edit' button is to _first_ create a fork (or more accurately, adds a job to their queue to create a fork in the background), and then pops open an editor. So your changes go in a separate working copy on the server. This neatly avoids the whole problem you're seeking a solution to.
pacem in terris / мир / शान्ति / سَلاَم / 平和
Kevin R. Bullock
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20111215/a7ed051e/attachment-0002.html>
More information about the Mercurial
mailing list