<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>2671</bug_id>
          
          <creation_ts>2012-06-29 11:59:22 +0000</creation_ts>
          <short_desc>create-pull-request and send-pull-request don&apos;t support the --help option</short_desc>
          <delta_ts>2012-09-28 09:18:13 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>9</classification_id>
          <classification>Documentation</classification>
          <product>Development Manual</product>
          <component>development</component>
          <version>1.4</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://git.yoctoproject.org/cgit.cgi/yocto-docs/commit/?id=b54bba33b2706bed593a9ee66d5c72f820c37d32</bug_file_loc>
          <status_whiteboard>24 Aug 2012: still resolved but extra information added</status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>1.3 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Cristian Ciupitu">cristian.ciupitu</reporter>
          <assigned_to name="Scott Rifenbark">srifenbark</assigned_to>
          <cc>dvhart</cc>
    
    <cc>sgw</cc>
    
    <cc>sstncr</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>22688</commentid>
    <comment_count>0</comment_count>
    <who name="Cristian Ciupitu">cristian.ciupitu</who>
    <bug_when>2012-06-29 11:59:22 +0000</bug_when>
    <thetext>The &quot;3.9.1. Pushing a Change Upstream and Requesting a Pull&quot; [1] section says:

    For help on using these scripts, simply provide the --help argument as follows: 
         $ ~/poky/scripts/create-pull-request --help
         $ ~/poky/scripts/send-pull-request --help

but running the scripts with --help outputs:

    [ciupicri@hermes poky]$ scripts/create-pull-request --help
    scripts/create-pull-request: illegal option -- -
    Usage: create-pull-request [-h] [-o output_dir] [-m msg_body_file] [-s subject] [-r relative_to] [-i commit_id] -u remote [-b branch]
    ....

    [ciupicri@hermes poky]$ scripts/send-pull-request --help
    scripts/send-pull-request: illegal option -- -
    Usage: send-pull-request [-h] [-a] [-c] [[-t email]...] -p pull-dir 
    ...

[1] http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#pushing-a-change-upstream</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22698</commentid>
    <comment_count>1</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-06-29 17:08:08 +0000</bug_when>
    <thetext>Does -h work for you? If so, we should update the 3.9.1 section to use -h, which is what the scripts themselves document in their usage statement.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22699</commentid>
    <comment_count>2</comment_count>
    <who name="Cristian Ciupitu">cristian.ciupitu</who>
    <bug_when>2012-06-29 17:20:06 +0000</bug_when>
    <thetext>Yes, -h works fine, I forgot to mention it.

By the way, the developers might find this helpful - http://stackoverflow.com/questions/402377/using-getopts-in-bash-shell-script-to-get-long-and-short-command-line-options

As a side note, I must say that I didn&apos;t understand what&apos;s with those scripts and I used raw git in the end. Another problem was the fact I didn&apos;t know to which mailing list I needed to send my patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22711</commentid>
    <comment_count>3</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-07-02 16:08:54 +0000</bug_when>
    <thetext>Paul E. has submitted a patch for review in his yocto-docs update for Jul 2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22712</commentid>
    <comment_count>4</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-07-02 16:14:04 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Yes, -h works fine, I forgot to mention it.
&gt; 

Great.

&gt; By the way, the developers might find this helpful -
&gt; http://stackoverflow.com/questions/402377/using-getopts-in-bash-shell-script-
&gt; to-get-long-and-short-command-line-options

The ommision of long opts was deliberate. It kept things simpler. If this is a stumbling block for people, I&apos;ll consider accepting a patch.

&gt; As a side note, I must say that I didn&apos;t understand what&apos;s with those
&gt; scripts and I used raw git in the end.

What do you mean? You didn&apos;t understand how to use them? There are some examples provided, did you find those lacking? If so, how?

&gt; Another problem was the fact I didn&apos;t
&gt; know to which mailing list I needed to send my patch.

Did you find the mailing list descriptions lacking in some way? If so, how?
http://www.yoctoproject.org/community/mailing-lists
http://www.yoctoproject.org/docs/current/poky-ref-manual/poky-ref-manual.html#resources-mailinglist

I did notice that neither of these references mention &quot;sending patches&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22731</commentid>
    <comment_count>5</comment_count>
    <who name="Cristian Ciupitu">cristian.ciupitu</who>
    <bug_when>2012-07-02 19:12:36 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #2)
&gt; &gt; As a side note, I must say that I didn&apos;t understand what&apos;s with those
&gt; &gt; scripts and I used raw git in the end.
&gt; 
&gt; What do you mean? You didn&apos;t understand how to use them? There are some
&gt; examples provided, did you find those lacking? If so, how?

The documentation says:

    Commit the change by using the git commit command and push it to the
    &quot;contrib&quot; repository. Be sure to provide a commit message that follows
    the project’s commit standards as described earlier.

On the other hand, somewhere on the site it is mentioned that the contrib
repository is for pretty regular contributors which wasn&apos;t my case.

&gt; &gt; Another problem was the fact I didn&apos;t
&gt; &gt; know to which mailing list I needed to send my patch.
&gt; 
&gt; Did you find the mailing list descriptions lacking in some way? If so, how?
&gt; http://www.yoctoproject.org/community/mailing-lists
&gt; http://www.yoctoproject.org/docs/current/poky-ref-manual/poky-ref-manual.
&gt; html#resources-mailinglist
&gt; 
&gt; I did notice that neither of these references mention &quot;sending patches&quot;.

They say development which suggests that patches are welcome, but what files
belong to Yocto and what to Poky? As a new user of this project, I had no idea.
I asked someone on #yocto where to send my tiny fix[1] and he said to the
openembedded-core list.

[1] http://lists.linuxtogo.org/pipermail/openembedded-core/2012-June/024649.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22761</commentid>
    <comment_count>6</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2012-07-03 17:45:26 +0000</bug_when>
    <thetext>Section 3.7 &quot;Workflows&quot; in the YP Development Manual (http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#workflows) discusses &quot;contrib&quot; areas.  I describes these areas as places where developers or community members can push changes to.  I don&apos;t see where it limits the description to people that regularly contribute back to the YP.  This section is a high-level overview of typical workflow.  It could be improved with some cross-referencing to the following sections that describe how to submit a change.

I have applied and pushed to yocto-docs/master the fixes to the documentation that Paul Eggleton submitted.  These addressed the &quot;-h&quot; issue and also provided more information on the mailing lists in the YP Reference manual.  The commits for these in yocto-docs/master are as follows:

e9bae0a323af2d95505c5492be985232440842ff
3170ce5e0757951afee13207c117316e33449b39
32e6145b5f41d4eb293f8267ef01d02217143152
a15f629afe46e7217182a1ac077ab59641be9a8c
877a7ecfd1623417d0793a5dd16b66c35b6fdbae

I will also make sure that the documentation mentions &quot;sending patches&quot; where the mailing lists are discussed in the YP Reference Manual. 

ScottR</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22766</commentid>
    <comment_count>7</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2012-07-03 21:36:00 +0000</bug_when>
    <thetext>As mentioned, I reviewed and implemented the patches sent by Paul.  I also consulted with Darren Hart over the state of the section that talks about sending patches up via email (http://www.yoctoproject.org/docs/latest/dev-manual/dev-manual.html#submitting-a-patch) to see if it was still relavent.  I made some changes that tied the section together with the description of the mailing lists in the YP Reference manual.  And, at the request of Darren, I added some advice to the user that would be contributing a lot.  Added a note that says to consider using the scripts we supply to formulate and send the patches as well as consider requesting a contrib area in YP and OE.

Note that the following commit also contributed to this fix.  I forgot to put the &quot;Fixes [YOCTO #2671]&quot; line in the commit description though.

http://git.yoctoproject.org/cgit.cgi/yocto-docs/commit/?id=ad75ae45420c43bda974d22b02094237b5c7cc50

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22768</commentid>
    <comment_count>8</comment_count>
    <who name="Cristian Ciupitu">cristian.ciupitu</who>
    <bug_when>2012-07-04 01:02:27 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; I don&apos;t see where it limits the description to people that regularly
&gt; contribute back to the YP.  

Section &quot;3.9. How to Submit a Change&quot; [1] says:

  Poky contributions tree (poky-contrib,
  git://git.yoctoproject.org/poky-contrib.git) exists for contributors
  to stage contributions. If people desire such access, please ask on
  the mailing list. Usually, the Yocto Project team will grant access to
  anyone with a proven track record of good patches.

As a new comer I don&apos;t have a proven track record of good patches.
Besides it meant sending a request, waiting for it to be granted and
only afterwards sending my tiny patch. Too much bureaucracy for some
sporadic patches in my humble opinion.

[1] http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#how-to-submit-a-change</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22834</commentid>
    <comment_count>9</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2012-07-05 13:32:59 +0000</bug_when>
    <thetext>My apologies on my last comment.  I get so used to working with and looking at the &quot;current&quot; version of the manuals and not the published versions that I assumed the text from the current manual.  This particular section has been updated.  I agree that the information in the current manual focused on the contrib area too much.  See the changes here and see if this works better.  Take into consideration the entire &quot;How to Submit a Change&quot; section, including the sub-sections.

http://www.yoctoproject.org/docs/latest/dev-manual/dev-manual.html#how-to-submit-a-change

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23125</commentid>
    <comment_count>10</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-07-16 17:00:09 +0000</bug_when>
    <thetext>In 3.9 regarding the bug-tracking ID:

	&lt;detailed description of change&gt;
	
	     [YOCTO #&lt;bug-id&gt;]

That might lead people to do:

	subject
	
	multiline detailed
	description of the
	change.
	
	[YOCTO #&lt;bug-id&gt;]

When the proper format would be:

	subject
	
	[YOCTO #&lt;bug-id&gt;]
	
	multiline detailed
	description of the
	change.

3.9.2 Submitting a Patch Through Emails

This section is a bit confusing as the send-pull-request script also sends patches via email. 3.9.2 also claims that git-send-email is the preferred method for sending patches, when in fact send-pull-request is the preferred method. Someone reading only 3.9.2 based on the section title might not realize that the send-pull-request method even exists.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24470</commentid>
    <comment_count>11</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2012-08-24 22:57:22 +0000</bug_when>
    <thetext>Darren, 

I have addressed the confusion you indicated in the last comment after the bug was marked resolved.  You can examine the changes at http://www.yoctoproject.org/docs/latest/dev-manual/dev-manual.html#how-to-submit-a-change.

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25900</commentid>
    <comment_count>12</comment_count>
    <who name="Stefan Stanacar">sstncr</who>
    <bug_when>2012-09-28 09:18:13 +0000</bug_when>
    <thetext>Verified.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>