• 
      

    Port Mercurial backend to use run_process() instead of execute().

    Review Request #14483 — Created June 27, 2025 and submitted

    Information

    RBTools
    master

    Reviewers

    This change updates the Mercurial implementation to use run_process()
    instead of execute().

    Ran unit tests.

    Summary ID
    Port Mercurial backend to use run_process() instead of execute().
    This change updates the Mercurial implementation to use `run_process()` instead of `execute()`. Testing Done: Ran unit tests.
    0c53b04a96a0cac5fa77ed196adbc9b0f3f26a35
    Description From Last Updated

    Probably worth just catching the exception in this case.

    chipx86chipx86

    Probably better to do a try/except instead of ignoring and then checking.

    chipx86chipx86

    We should be localizing these strings.

    chipx86chipx86

    No need for the else: here.

    chipx86chipx86

    Two different import groups.

    chipx86chipx86

    These are missing docs.

    chipx86chipx86
    chipx86
    1. 
        
    2. rbtools/clients/mercurial.py (Diff revision 1)
       
       
       
       
       
       
       
      Show all issues

      Probably worth just catching the exception in this case.

    3. rbtools/clients/mercurial.py (Diff revision 1)
       
       
       
       
       
       
       
       
       
       
       
      Show all issues

      Probably better to do a try/except instead of ignoring and then checking.

    4. rbtools/clients/mercurial.py (Diff revision 1)
       
       
       
      Show all issues

      We should be localizing these strings.

    5. rbtools/clients/mercurial.py (Diff revision 1)
       
       
       
       
      Show all issues

      No need for the else: here.

    6. rbtools/utils/process.py (Diff revision 1)
       
       
       
      Show all issues

      Two different import groups.

    7. rbtools/utils/process.py (Diff revision 1)
       
       
       
       
       
       
       
       
       
      Show all issues

      These are missing docs.

      1. These are all just mirrors of what's immediately below inside the run_process method, and it's just used to have type checking for methods that wrap run_process, like MercurialClient._execute. I don't feel like it makes any sense to copy/paste all the documentation for something like that.

    8. 
        
    david
    maubin
    1. Ship It!
    2. 
        
    chipx86
    1. Ship It!
    2. 
        
    david
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to master (fc986cc)