<?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>11392</bug_id>
          
          <creation_ts>2017-04-20 04:05:50 +0000</creation_ts>
          <short_desc>Document how to specify a branch / tag / revision when using devtool add with a remote URL</short_desc>
          <delta_ts>2017-09-26 23:40:37 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>9</classification_id>
          <classification>Documentation</classification>
          <product>Reference</product>
          <component>handbook</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>26 September 2017: RESOLVED</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.5 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Kristi">kristi</assigned_to>
          <cc>brianx.j.kurle</cc>
    
    <cc>poky.doc.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>srifenbark</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Done (doc changes complete)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>72698</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-04-20 04:05:50 +0000</bug_when>
    <thetext>devtool add allows you to specify a remote URL to fetch from, which may be a git repository, but we don&apos;t currently appear to have documented how branches/revisions/tags can be specified.

By default the latest revision on the master branch is found and used (as a fixed revision), but in many cases you&apos;ll want to specify either a source revision (;rev=something where something could be a tag or a commit hash), a branch (;branch=somebranch), or both. If instead of a specific revision you want to use the latest revision every time the recipe is built, then you need to use the -a / --autorev option, which may be used in conjunction with branch= to use the latest on a specific branch instead of master.

An additional concern is if you are specifying any such parameters, because of the use of the ; character and typical Linux shell behaviour you will need to surround the URL in quotes e.g. &quot;git://example.com/repo;branch=mybranch&quot; .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72835</commentid>
    <comment_count>1</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2017-04-25 15:29:43 +0000</bug_when>
    <thetext>Setting number of days.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72870</commentid>
    <comment_count>2</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2017-04-26 18:44:32 +0000</bug_when>
    <thetext>Setting to 2.4 M1 and ACCEPTED.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73717</commentid>
    <comment_count>3</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2017-06-05 23:03:30 +0000</bug_when>
    <thetext>Paul, 

Right now, the help for &quot;devtool add&quot; does not cover any of this detail.  Are there plans to update the help output to include these details?

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77154</commentid>
    <comment_count>4</comment_count>
    <who name="Kristi">kristi</who>
    <bug_when>2017-09-26 22:34:38 +0000</bug_when>
    <thetext>I have updated the section here; http://www.yoctoproject.org/docs/2.4/ref-manual/ref-manual.html#devtool-adding-a-new-recipe-to-the-workspace 

I have also updated the Getting Help section with current output here; http://www.yoctoproject.org/docs/2.4/ref-manual/ref-manual.html#devtool-getting-help

Please review and let me know if this is okay, or if additional changes are necessary. 

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77157</commentid>
    <comment_count>5</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-09-26 23:19:58 +0000</bug_when>
    <thetext>Looks good to me - and good job on documenting the new --srcbranch/--srcrev options rather than using the old method as I wrote in the bug description, I&apos;d meant to come back here and note the change but forgot. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77158</commentid>
    <comment_count>6</comment_count>
    <who name="Kristi">kristi</who>
    <bug_when>2017-09-26 23:40:37 +0000</bug_when>
    <thetext>Thanks Paul! Thanks for the quick review. Marking as doc flag Done and status RESOLVED.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>