Sheriffing/How To/Helpers
Jump to navigation
Jump to search
Helpers
mach file-info bugzilla-component lookup shortcut (mfi)
If the bugzilla product and component for a file or folder have to be looked up on Linux, provide the file name, folder name, the path or only a part of any of this to retrieve this information with
mfi search_term
while in the root folder of the mozilla-unified repository.
- In your home directory, check if there is a file called
.bash_aliases
. - If not, create it, e.g. with the file manager: menu 'File' > 'New Document'.
- Add the following code:
mfi() { ./mach file-info bugzilla-component `find -path "*$1*" -not -path "./.hg/*"` }
- Save and close the file.
- New console windows will be support the mfi command to find matching files and check for their bugzilla products and components. If it doesn't find matches, error messages are shown.
Examples:
File name
$ mfi browser_treeupdate_canvas.js Core :: Disability Access APIs accessible/tests/browser/e10s/browser_treeupdate_canvas.js
Part of file name
$ mfi treeupdate_canvas.js Core :: Disability Access APIs accessible/tests/browser/e10s/browser_treeupdate_canvas.js
Folder name
$ mfi accessible/tests/browser/ Core :: Disability Access APIs accessible/tests/browser/.eslintrc.js accessible/tests/browser/bounds ... accessible/tests/browser/tree/browser_aria_owns.js accessible/tests/browser/tree/head.js