[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hadoop-dev
Subject:    Re: a friendly suggestion for developers when uploading patches
From:       Steve Loughran <stevel () hortonworks ! com>
Date:       2014-11-27 10:15:15
Message-ID: CA+4kjVvRga9pgkGXat=g4hMLDkZTNP+HPAkg9=7j=7Z5pUnf8A () mail ! gmail ! com
[Download RAW message or body]


ted, leading zeros make it easy to sort in directories when downloaded.

Works well if you download incoming patches to the same dir, or save your
own generated patches to the same folder (which I do to track what number
to use next & maintain that history)

On 26 November 2014 at 23:52, Ted Yu <yuzhihong@gmail.com> wrote:

> bq. in the format of 001
>
> It is hard to anticipate how many revisions a patch would go through. So
> the leading zero's in the rev number should be optional.
>
> Cheers
>
> On Sat, Nov 22, 2014 at 11:11 AM, Yongjun Zhang <yzhang@cloudera.com>
> wrote:
>
> > Hi Steve,
> >
> > Thanks for the good suggestion.
> >
> > I like the idea to have even a more specific guideline for patch file
> > naming, and I agree using 3-digit is a good choice here:
> >
> > <*projectName*>-<*jiraNum*>-<*revNum*>.patch
> >
> > where revNum is 3-digit, in the format of 001, 002, ..., 010, 011, ...
> >
> > Thanks.
> >
> > --Yongjun
> >
> > On Sat, Nov 22, 2014 at 10:24 AM, Steve Loughran <stevel@hortonworks.com
> >
> > wrote:
> >
> > > can we do HADOOP-1111-001.patch
> > >
> > > with the 001 being the revision.
> > >
> > > -That numbering scheme guarantees listing order in directories &c
> > > -having .patch come after ensures that those people who have .patch
> bound
> > > in their browser to a text editor (e.g. textmate) can view the patch
> with
> > > ease
> > >
> > > I know having a 3 digit number is pessimistic -I've never got past 70+,
> > but
> > > you never know
> > >
> > > For anyone doing patches off their own repo, I'd recommend tagging the
> > > commit with the same revision number —but that 's just a personal
> choice
> > >
> > >
> > >
> > > On 21 November 2014 at 19:10, Ted Yu <yuzhihong@gmail.com> wrote:
> > >
> > > > bq. include a revision number in the patch file name
> > > >
> > > > +1
> > > >
> > > > On Fri, Nov 21, 2014 at 11:06 AM, Yongjun Zhang <yzhang@cloudera.com
> >
> > > > wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > When I look at patches uploaded to jiras, from time to time I
> notice
> > > that
> > > > > different revisions of the patch is uploaded with the same patch
> file
> > > > name,
> > > > > some time for quite a few times. It's confusing which is which.
> > > > >
> > > > > I'd suggest that as a guideline, we do the following when
> uploading a
> > > > > patch:
> > > > >
> > > > >    - include a revision number in the patch file name.A
> > > > >    - include a comment, stating that a new patch is uploaded,
> > including
> > > > the
> > > > >    revision number of the patch in the comment.
> > > > >
> > > > > This way, it's easier to refer to a specific version of a patch,
> and
> > to
> > > > > know which patch a comment is made about.
> > > > >
> > > > > Hope that makes sense to you.
> > > > >
> > > > > Thanks.
> > > > >
> > > > > --Yongjun
> > > > >
> > > >
> > >
> > > --
> > > CONFIDENTIALITY NOTICE
> > > NOTICE: This message is intended for the use of the individual or
> entity
> > to
> > > which it is addressed and may contain information that is confidential,
> > > privileged and exempt from disclosure under applicable law. If the
> reader
> > > of this message is not the intended recipient, you are hereby notified
> > that
> > > any printing, copying, dissemination, distribution, disclosure or
> > > forwarding of this communication is strictly prohibited. If you have
> > > received this communication in error, please contact the sender
> > immediately
> > > and delete it from your system. Thank You.
> > >
> >
>

-- 
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic