User:Bugman/subsystems: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(→‎All subsystems: Reintroduced the text output in collapsed form.)
m (→‎Refactoring: Updated the script.)
Line 733: Line 733:
# Other module imports.
# Other module imports.
from find_subsystems import FindSubsystems
from find_subsystems import FindSubsystems
# Source code repository paths.
SIMGEAR_PATH = "/flightgear/src/flightgear-simgear"
FLIGHTGEAR_PATH = "/flightgear/src/flightgear-flightgear"




Line 745: Line 750:


         # Generate a list of files to skip.
         # Generate a list of files to skip.
         pipe = Popen("git diff --name-only ..next", shell=True, stdout=PIPE)
         cmd = "cd %s;" % SIMGEAR_PATH
        cmd += "git diff --name-only ..next;"
        cmd += "cd %s;" % FLIGHTGEAR_PATH
        cmd += "git diff --name-only ..next"
        pipe = Popen(cmd, shell=True, stdout=PIPE)
         blacklist = []
         blacklist = []
         for line in pipe.stdout.readlines():
         for line in pipe.stdout.readlines():

Revision as of 18:36, 18 April 2018

Tracking down subsystems

Script

The following script is for finding all FlightGear dependencies:

All subsystems

The result is:

Refactoring

To check that all subsystems on a branch have been updated or refactored: