<?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>11948</bug_id>
          
          <creation_ts>2017-08-18 01:01:17 +0000</creation_ts>
          <short_desc>devtool upgrade walks the file tree and execs a git add for each file</short_desc>
          <delta_ts>2017-11-12 19:56:21 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>2.4</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></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="brian avery">brian.avery</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>alex.kanavin</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>75975</commentid>
    <comment_count>0</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2017-08-18 01:01:17 +0000</bug_when>
    <thetext>In a complex upgrade like qemu 2.8.1.1 -&gt; 2.10.o-rc2, this can take ~ 10 minutes.  Right now, there is no user feedback that progress is being made unless devtool is run with -d. Instead, it looks like devtool upgrade has hung.

We should probably do a progress bar regardless since even if we speed it up a huge (webkit?) upgrade may still be slow. We may also want to look at other ways to do this like using the python git library instead of system calls, or doing some batching of our own, ...
The &quot;culprit&quot; is in scripts/lib/devtool/upgrade.py:
        (stdout,_) = __run(&apos;git ls-files --modified --others --exclude-standard&apos;)   
        for f in stdout.splitlines():                                                                                                
           __run(&apos;git add &quot;%s&quot;&apos; % f)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77458</commentid>
    <comment_count>1</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2017-10-09 11:04:39 +0000</bug_when>
    <thetext>*** Bug 12198 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78166</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-11-12 19:56:21 +0000</bug_when>
    <thetext>Fix merged to master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=7bab0de6cb9c973a96b9bd8ab55b8f50a1087f34</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>