Making "hg push -r foo" changes phases
sterkrig at myopera.com
Fri Jun 14 13:25:14 CDT 2013
Den 2013-06-14 22:13:51 skrev Augie Fackler <raf at durin42.com>:
> On Fri, Jun 14, 2013 at 2:12 PM, Jordi Gutiérrez Hermoso
> <jordigh at octave.org> wrote:
>> On 14 June 2013 14:06, Augie Fackler <raf at durin42.com> wrote:
>>> I wouldn't want push to ever push secret commits, as the whole reason
>>> I use them is for things I don't want to accidentally foist on the
>>> world yet.
>> That's the issue, if you're saying "push this one", could you be
>> accidentally pushing a secret commit? How accidental is it if you said
>> "this one"?
> I don't know. If I copy/paste the wrong sha or bookmark? if I derp a
> revset and get too much? I think the slight inconvenience of having to
> move the commit to draft phase explicitly is worth it.
I agree. There's a lot of possibilities to break something this way with
few ones to fix it up afterwards.
By the way, have you considered using [alias]
secretpush = !$HG phase -d $@ ; $HG push -r $@
More information about the Mercurial-devel