Usage is:
./profile rm <profile> [<file>]
The file is a list of prefs, one per line, to remove. The file defaults to stdin, so the culmination
of the last three commits is the ability to do:
./profile diff reftest common -f names -k same | ./profile rm reftest
The above command will remove from the reftest profile, the prefs that are identical in both
reftest and common. This method is quicker and less error prone than doing it manually (which
was how I was doing this previously).
MozReview-Commit-ID: Je0JjFXoora
--HG--
extra : rebase_source : 38dae2dcdc3986910cfcd5091f7fc968bf8cc22a
This limits the ./profile diff to a single key (e.g only show keys that are in A but not
B).
MozReview-Commit-ID: ILmbDqgU48o
--HG--
extra : rebase_source : 11fecf18e793ca33e13a7ed9786105e48ae39283
The main purpose of this change is to add some structured formats to the
diff. In future commits, the output of |./profile diff ...| will be used
as inputs to other ./profile commands.
The intent of all this work is to make it easier to programmatically
manipulate the pref files when adding in new suites. For example, I want
to say "Automatically remove all prefs from the reftest profile that are
shared with the common profile".
MozReview-Commit-ID: nf8xOjmd1u
--HG--
extra : rebase_source : 3ef8f55e9222aadefa5565f14ff9a8d671f88467
This lets you compare show or diff multiple profiles joined together. For example:
./profile show common+perf
Or:
./profile diff common+perf unittest
MozReview-Commit-ID: nf8xOjmd1u
--HG--
extra : rebase_source : 73db9638b1b366e4c4580079c547bbb4a12ccfbb
The main purpose of this script is to gain a view into the state of prefs
between various profiles or suites. There are three commands:
- show: Display prefs for the given profile or suite
- diff: Display differences of prefs between two profiles or suites
- sort: Sort pref files alphabetically for the given suite (this takes comments into account)
This also sorts common/user.js.
MozReview-Commit-ID: Bzl7w7i3glm
--HG--
extra : rebase_source : a8e620d06e9a940fadc7c3c0727e5c81ac3e3dfa