From kelly.ohair at oracle.com Thu Dec 22 13:58:15 2011 From: kelly.ohair at oracle.com (Kelly O'Hair) Date: Thu, 22 Dec 2011 13:58:15 -0800 Subject: Is there any way to test run jcheck if you don't have commit rights? In-Reply-To: <4EF37BB4.7060002@oracle.com> References: <4EF37BB4.7060002@oracle.com> Message-ID: <2169453E-C2F0-4DAD-A2AD-7FEA943D7411@oracle.com> Try 'hg jcheck' more info with 'hg help jcheck' -kto On Dec 22, 2011, at 10:49 AM, pranav bhat wrote: > Hello, > > Not sure if this is the right ML to ask this question but I thought I'd give it a try: > > Is there anyways to kind of "test run" jcheck to see if your changeset will be accepted for format / file permissions (eg: Reviewed-by:, Contributed-by: tags, files should not have executable bit set etc) if it were to be actually pushed especially when you don't have any commit/push rights on any forest? > > I haven't been here long enough and hence this might be a very trivial question. I apologize in advance. :-) > > Thanks, > - Pranav From james.melvin at oracle.com Thu Dec 22 14:41:28 2011 From: james.melvin at oracle.com (James Melvin) Date: Thu, 22 Dec 2011 17:41:28 -0500 Subject: Is there any way to test run jcheck if you don't have commit rights? In-Reply-To: <2169453E-C2F0-4DAD-A2AD-7FEA943D7411@oracle.com> References: <4EF37BB4.7060002@oracle.com> <2169453E-C2F0-4DAD-A2AD-7FEA943D7411@oracle.com> Message-ID: <4EF3B218.6010400@oracle.com> Hi Pranav, From what I can gather, jcheck only operates on changesets. So, you have to commit your work first before running 'hg jcheck'. Perhaps someone on the alias has a good way to avoid the commit-rollback-commit-rollback... to fix jcheck issues. - Jim On 12/22/11 4:58 PM, Kelly O'Hair wrote: > > Try 'hg jcheck' more info with 'hg help jcheck' > > -kto > > On Dec 22, 2011, at 10:49 AM, pranav bhat wrote: > >> Hello, >> >> Not sure if this is the right ML to ask this question but I thought I'd give it a try: >> >> Is there anyways to kind of "test run" jcheck to see if your changeset will be accepted for format / file permissions (eg: Reviewed-by:, Contributed-by: tags, files should not have executable bit set etc) if it were to be actually pushed especially when you don't have any commit/push rights on any forest? >> >> I haven't been here long enough and hence this might be a very trivial question. I apologize in advance. :-) >> >> Thanks, >> - Pranav > From jonathan.gibbons at oracle.com Thu Dec 22 14:58:36 2011 From: jonathan.gibbons at oracle.com (Jonathan Gibbons) Date: Thu, 22 Dec 2011 22:58:36 +0000 Subject: Is there any way to test run jcheck if you don't have commit rights? In-Reply-To: <4EF3B218.6010400@oracle.com> References: <4EF37BB4.7060002@oracle.com> <2169453E-C2F0-4DAD-A2AD-7FEA943D7411@oracle.com> <4EF3B218.6010400@oracle.com> Message-ID: <4EF3B61C.4060303@oracle.com> You can run jcheck on a pre-commit hook, which prevents the commit from succeeding if jcheck finds issues. -- Jon On 12/22/2011 10:41 PM, James Melvin wrote: > Hi Pranav, > > From what I can gather, jcheck only operates on changesets. So, you have > to commit your work first before running 'hg jcheck'. Perhaps someone on > the alias has a good way to avoid the commit-rollback-commit-rollback... > to fix jcheck issues. > > - Jim > > > On 12/22/11 4:58 PM, Kelly O'Hair wrote: >> >> Try 'hg jcheck' more info with 'hg help jcheck' >> >> -kto >> >> On Dec 22, 2011, at 10:49 AM, pranav bhat wrote: >> >>> Hello, >>> >>> Not sure if this is the right ML to ask this question but I thought >>> I'd give it a try: >>> >>> Is there anyways to kind of "test run" jcheck to see if your >>> changeset will be accepted for format / file permissions (eg: >>> Reviewed-by:, Contributed-by: tags, files should not have executable >>> bit set etc) if it were to be actually pushed especially when you >>> don't have any commit/push rights on any forest? >>> >>> I haven't been here long enough and hence this might be a very >>> trivial question. I apologize in advance. :-) >>> >>> Thanks, >>> - Pranav >> From mark.reinhold at oracle.com Thu Dec 22 15:09:29 2011 From: mark.reinhold at oracle.com (mark.reinhold at oracle.com) Date: Thu, 22 Dec 2011 15:09:29 -0800 Subject: Is there any way to test run jcheck if you don't have commit rights? In-Reply-To: omajid@redhat.com; Thu, 22 Dec 2011 17:36:53 EST; <4EF3B105.70100@redhat.com> Message-ID: <20111222230929.0E9571084@eggemoggin.niobe.net> 2011/12/22 14:36 -0800, omajid at redhat.com: > $ hg jcheck > hg: unknown command 'jcheck' > > Is that a custom mercurial extension? Where can I get it? Yes, it's a custom extension. It's not available outside Oracle, but we're working to fix that. - Mark