<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 24 March 2014 05:54, Dov Feldstern <span dir="ltr"><<a href="mailto:dovdevel@gmail.com" target="_blank">dovdevel@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
This is in continuation of the discussion last month about "sharing<br>
secrets with friends" [1], the upshot of which was that a better<br>
approach would be not to share secrets, but rather to optionally limit<br>
the sharing of drafts (or, more generally, arbitrary revsets, such as<br>
proprietary branches?) with certain peers.<br>
<br>
I've been playing around with a few different approaches for achieving<br>
this, but I don't like any of the results, and I would appreciate some<br>
ideas about how to go about this...<br></blockquote><div><br></div>What if hg push and hg pull gained a --secret option? That would allow keeping the changesets you don't generally want shared as secret, but allow transferring them between your own clones that presumably you have complete control over. Include an option in hgrc to allow pushing/pulling of secret changesets (off by default).<div>
<br></div><div>You could combine this with authentication e.g. to ensure that only you can push secret changesets to a particular clone.</div><div><br></div><div>This would work perfectly for my own use cases:</div><div><br>
</div><div>1. Pushing work-in-progress to another clone (e.g. on another machine) to build and run unit tests;</div><div><br></div><div>2. Working in a secret branch so that I can rebase, collapse, etc to get the clean changesets I want, whilst still being able to back up my work in progress by pushing to another clone;</div>
<div><br></div><div>3. Having a "code review" clone which can take other developers' work in progress, review, pair with the author to make changes, etc and not have it dirty up the clean history in the main repo (because the changesets are secret).</div>
<div><br></div><div>Tim Delaney </div></div></div></div>