Commit Graph

5 Commits

Author SHA1 Message Date
Andrew Halberstadt
862e0f0951 Bug 1460912 - [testing/profiles] Add a ./profile rm subcommand for removing prefs from a profile r=rwood
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
2018-05-14 21:43:47 -04:00
Andrew Halberstadt
ae47cd1150 Bug 1460912 - [testing/profiles] Add option to limit ./profile diff to a specified key r=rwood
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
2018-05-14 13:17:09 -04:00
Andrew Halberstadt
848da85cb2 Bug 1460912 - [testing/profiles] Add --format options to ./profile diff r=rwood
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
2018-05-16 17:10:20 -04:00
Andrew Halberstadt
4c09b651d7 Bug 1460912 - [testing/profiles] Add ability to diff and show multiple profiles with '+' r=rwood
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
2018-05-16 17:10:13 -04:00
Andrew Halberstadt
c15fc95f29 Bug 1458571 - Add a script for diffing and sorting preferences, r=rwood
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
2018-05-05 07:30:38 -04:00