Changes

Jump to: navigation, search

Sheriffing/How To/Helpers

1,451 bytes added, 17:49, 26 October 2018
added mach file-info bugzilla-component lookup shortcut (mfi)
= 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
<pre>mfi search_term</pre>
while in the root folder of the mozilla-unified repository.

* In your home directory, check if there is a file called <code>.bash_aliases</code>.
* If not, create it, e.g. with the file manager: menu 'File' > 'New Document'.
* Add the following code:
<pre>
mfi() {
./mach file-info bugzilla-component `find -path "*$1*" -not -path "./.hg/*"`
}
</pre>
* 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
<pre>$ mfi browser_treeupdate_canvas.js
Core :: Disability Access APIs
accessible/tests/browser/e10s/browser_treeupdate_canvas.js
</pre>

Part of file name
<pre>$ mfi treeupdate_canvas.js
Core :: Disability Access APIs
accessible/tests/browser/e10s/browser_treeupdate_canvas.js
</pre>

Folder name
<pre>$ 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
</pre>
Confirm
572
edits

Navigation menu