[Notes] [Git][BuildStream/buildstream][master] 2 commits: Disable round-tripping when element is not modified



Title: GitLab

Tristan Van Berkom pushed to branch master at BuildStream / buildstream

Commits:

1 changed file:

Changes:

  • buildstream/source.py
    ... ... @@ -769,7 +769,8 @@ class Source(Plugin):
    769 769
             #
    
    770 770
             # Step 2 - Set the ref in memory, and determine changed state
    
    771 771
             #
    
    772
    -        changed = self._set_ref(new_ref, node)
    
    772
    +        if not self._set_ref(new_ref, node):
    
    773
    +            return False
    
    773 774
     
    
    774 775
             def do_save_refs(refs):
    
    775 776
                 try:
    
    ... ... @@ -806,7 +807,7 @@ class Source(Plugin):
    806 807
                                       .format(provenance.filename.shortname),
    
    807 808
                                       reason="tracking-junction-fragment")
    
    808 809
     
    
    809
    -        return changed
    
    810
    +        return True
    
    810 811
     
    
    811 812
         # Wrapper for track()
    
    812 813
         #
    



  • [Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]