Граф коммитов

537616 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez 12ff144410 servo: Merge #16985 - layout: Stop mutating the style data from layout (from emilio:cache); r=bholley
This is part of #16982.

Right now we have some code that tries to cache stuff in the style data during
layout.

This code is extremely rarely executed, only for `<details>` and `<summary>`.

I think if we really really want to cache these, we should find a place in the
layout data for it.

For now, let's move it away (and all the other layout code) from mutating the
style data from layout.

Source-Repo: https://github.com/servo/servo
Source-Revision: 84c1f904cbf5ca338b46f41426eab53fc45543e9

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 5e99273cbefd87cbdef9cb5ca5a9b2fa16b32f5a
2017-05-23 06:35:16 -05:00
Matt R a29f2875c8 Bug 1355696 - convert uses of 'defer' to 'new Promise' in client/sourceeditor; r=tromey
MozReview-Commit-ID: 5b1ObMvNA2e

--HG--
extra : rebase_source : 01b6f8125eb0cafdffd637bb4715b8ebcce8d585
2017-05-20 19:14:59 +01:00
Emilio Cobos Álvarez fe39e5d273 servo: Merge #16983 - style: Remove unneeded indirection in traversal code (from emilio:indir-data); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: e24d96cdd04fb40c0681a6ba46476ba04607f573

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : ef510baecbcdeb319315f35af02b186d2a96982b
2017-05-23 04:58:53 -05:00
Sebastian Hengst e399d29e1d Backed out changeset 8cc336b9806d (bug 1364594) for almost permafailing Marionette-headless in either test_window_maximize.py TestWindowMaximize.test_maximize or test_window_rect.py TestSize.test_resize_while_fullscreen. r=backout 2017-05-23 13:26:27 +02:00
David Burns 7e83395231 Bug 1366728 - Allow Window Rect dimensions to pass through after Set Window Rect; r=jgraham
By allowing the data to pass through we become conformant on the final step of
https://w3c.github.io/webdriver/webdriver-spec.html#set-window-rect

MozReview-Commit-ID: HZjrvQSUbRr

--HG--
extra : rebase_source : 84373d8bda9643c9878caca34cdcfafdf151fe22
2017-05-23 11:51:07 +01:00
Dão Gottwald 5fd39d8fd1 Bug 1366473 - Explicitly hide close buttons in background tabs when overflowing. r=florian
Due to adjustTabstrip being called in setTimeout, it may have missed the opportunity to set
the closebuttons attribute before entering overflow mode, which would make all tabs show
their close button while overflowing.

MozReview-Commit-ID: 7tuvNH4lr0

--HG--
extra : rebase_source : 057d774c292290afd7725c0d155e9792cd739a04
2017-05-23 12:13:43 +02:00
Iris Hsiao aa2534306b Backed out changeset 31a809d5ca1a (bug 1364068) for valgrind bustage
--HG--
extra : rebase_source : 97ee6c0cf8677a55967c8e7a2b8722fdc0cf0378
2017-05-23 18:07:38 +08:00
Mike de Boer 870e1626b0 Bug 1365647 - Make sure that the panel height never shrinks below the height of the main view in panelviews, like the main menu. r=Gijs
MozReview-Commit-ID: EhjDg3Sci1y

--HG--
extra : rebase_source : bf943bbab5b8d77e73c4957dfe9cb87c64ad5659
2017-05-23 12:07:50 +02:00
Mike de Boer 96546e2ad2 Bug 1354108 - Add the edit controls (cut, copy, paste) to the static menu panel. r=Gijs
MozReview-Commit-ID: Dudscy7dSB1

--HG--
extra : rebase_source : 42ac8e4c57b19b03bcf965d40b65c81dde790fba
2017-05-23 12:03:00 +02:00
David Burns 8a1ed5912e Bug 1364594: Exit fullscreen when Set Window Rect is invoked. r=ato
If the browser is in fullscreen mode and Set Window Rect is called
we need to exit fullscreen mode and then continue to manipulate the
browser.

As described in https://w3c.github.io/webdriver/webdriver-spec.html#set-window-rect
Step 10

MozReview-Commit-ID: 5ixhGOXVBE4

--HG--
extra : rebase_source : be2b8b6da5cf78c6263502a6cb422e2de81c742d
2017-05-22 21:54:26 +01:00
Emilio Cobos Álvarez 7fe8962193 servo: Merge #16981 - Bug 1366427: Make backdrop not inherit from the parent element. r=heycam (from emilio:backdrop); r=heycam
Source-Repo: https://github.com/servo/servo
Source-Revision: 17069f4876670d5a4f310e449f8bc78bbb45c827

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 6971a7a2eed3a4fcdc1aa4882c5040361b3c420d
2017-05-23 02:25:07 -05:00
Panos Astithas 496eb40429 Enable one-off search buttons in the URL bar on all channels (bug 1344929). r=adw
MozReview-Commit-ID: 8pVvMrneOq7

--HG--
extra : rebase_source : 767578497fe9c343450c9978b258eb91f363407a
2017-04-04 16:03:43 +03:00
Julian_Chu f0fad4d644 Bug 1366648 - Fix reload button color problem r=sebastian
configuration: Nexus 5 + Android Hammerhead 5.1.1 LMY48M

In CustomTabsActivity, the menu reload-button use a LevelListDrawable.
On some configurations, icon's state won't be set to Enabled by system, hence
the color of icon is incorrect. We have to enable it manually.

MozReview-Commit-ID: JB9t35OyatY

--HG--
extra : rebase_source : e0750f6b76ea25a6abcb5d1375aa1468522f0da4
2017-05-23 11:13:06 +08:00
Matthew Noorenberghe e582e5f680 Bug 1364477 - Remove FormAutofillParent.init logging to load logging code later. r=steveck
This helps with 7ms on ts_paint linux64 opt e10s

MozReview-Commit-ID: KwlQFbYDJr1

--HG--
extra : rebase_source : fd2ac8392ee4020652364784f60b45326160e66d
2017-05-18 23:58:02 -07:00
Matthew Noorenberghe 2b1cb71e67 Bug 1364477 - Delay ProfileStorage initialization until focusin. r=lchang,seanlee,steveck
MozReview-Commit-ID: CNlVNOI1mWw

--HG--
extra : rebase_source : 2789e74d440f252730d2b2598a2b762ec8356aac
2017-05-23 00:39:00 -04:00
Matthew Noorenberghe cb12333c55 Bug 1364477 - Only getAll Address Profiles once at initialization. r=steveck
MozReview-Commit-ID: Hw1twbznDsY

--HG--
rename : browser/extensions/formautofill/test/unit/test_enabledStatus.js => browser/extensions/formautofill/test/unit/test_activeStatus.js
extra : rebase_source : 098db1d42c1811ef27302725f7ab7f528dcf7bc3
2017-05-23 00:47:59 -04:00
Matthew Noorenberghe 617b1fb255 Bug 1364477 - Only append formautofill.css the first time autocomplete is opening. r=lchang,ralin
MozReview-Commit-ID: NF5wEuqp4r

--HG--
extra : rebase_source : c973f678908e6118a02ebbfab921b89e0f87c600
2017-05-17 23:28:00 -07:00
Greg Mierzwinski c5bcaac726 Bug 1365293 - Enable e10s tests on linux64-ccov. r=jmaher
MozReview-Commit-ID: 74yq4yzqXJ7

--HG--
extra : rebase_source : eda6023d171944936152e9c60b495c17d86b16cb
2017-05-22 07:37:30 -04:00
Patrick Brosset 5131adc0e1 Bug 1353042 - Get rid of all sdk/tabs and sdk/tabs/utils usage; r=zer0
Removed obsolete browser_dbg_event-listeners-03/4.js tests (they are for the
old debugger, and the new debugger doesn't even support event listeners
yet, so no use keeping this test around).

Removed getBrowserForTab SDK dependency from command-state.js.

Changed the implementation of addTab/removeTab in perf test's tab-utils
helper.

MozReview-Commit-ID: 7EXJ5K3kaJm

--HG--
extra : rebase_source : 5b235deb65ede4a15d3f189d95c4a81f385185a9
2017-05-02 16:46:54 +02:00
Alessio Placitelli 7a914dc6d3 Bug 1364068 - Enable the 'new-profile' ping. r=gfritzsche
MozReview-Commit-ID: 6DXa20aCOBr

--HG--
extra : rebase_source : c8ffc0d7c5f5e92aa604576797dfee7a7f303e7c
2017-05-22 12:52:19 +02:00
Alex Chronopoulos ef928e094b Bug 1366707 - update callers of cubeb_device_collection_destroy. r=kinetik
MozReview-Commit-ID: JByi6XfgWh2

--HG--
extra : rebase_source : 440f791a101d9b94b74c55e2ba6802cc4e66fecb
2017-05-23 11:30:05 +03:00
Alex Chronopoulos 9281e65d26 Bug 1366707 - Update cubeb from upstream to 96cdb17. r=kinetik
MozReview-Commit-ID: 3aiEtrl289U

--HG--
extra : rebase_source : 16ebdb2e20fc516047cc8f4974d6c9e6ec638fcb
2017-05-23 11:29:33 +03:00
Iris Hsiao ad000bc76c Backed out changeset 4c2036f901c1 (bug 1353042) for build bustage in Symlink target path does not exist: doc_event-listeners-04.html
CLOSED TREE
2017-05-23 16:15:23 +08:00
Xidorn Quan 399614af08 Bug 1363968 - Change how counter-{reset,increment} is parsed to align serialization of specified value with Servo and Blink. r=heycam
This also includes a small fix to manifest of the affected mochitest.

MozReview-Commit-ID: 1b8lba5JiHr

--HG--
extra : rebase_source : e435160f2e20b8cd4954ae5536c800dcddde33d4
2017-05-23 13:28:47 +10:00
Axel Nennker 9738486c01 Bug 1364991 - Make U2FTokenManager use const where possible r=qdot
The U2F Soft Token, due to its usage of NSS, has to have const values be
marked non-const - but no such limitation should exist for other implementations
of U2F, so this patch moves the const_cast-ing from the U2FTokenManager-level
down to the U2FSoftTokenManager, where it is actually necessary.

Credit to Axel Nennker for this patch.

MozReview-Commit-ID: Kw6zfTDI3GL

--HG--
extra : rebase_source : 90e31e2da9e021043509653a476ddaae03078e55
2017-05-22 16:40:29 -07:00
Dan Banner 83f7ba6396 Bug 1348522 - Remove unused files from chrome://global/skin/media/ r=florian
MozReview-Commit-ID: wE6BIj9x0n

--HG--
extra : rebase_source : 7787f7e7556b6209d9afb14cc96a48a71ecd8c1d
2017-05-14 19:14:59 +01:00
Patrick Brosset 75124a3a75 Bug 1353042 - Get rid of all sdk/tabs and sdk/tabs/utils usage; r=zer0
Removed obsolete browser_dbg_event-listeners-03/4.js tests (they are for the
old debugger, and the new debugger doesn't even support event listeners
yet, so no use keeping this test around).

Removed getBrowserForTab SDK dependency from command-state.js.

Changed the implementation of addTab/removeTab in perf test's tab-utils
helper.

MozReview-Commit-ID: 7EXJ5K3kaJm

--HG--
extra : rebase_source : 1922ba94fe72d3d10e6a4d8a9769cf475b9f113d
2017-05-02 16:46:54 +02:00
Manfred Brandl 14c64f407b servo: Merge #16979 - remove unused style::restyle_hints::RestyleReplacements (from manfredbrandl:patch-1); r=emilio
<!-- Please describe your changes on the following line: -->
remove unused style::restyle_hints::RestyleReplacements from line 134

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #16978 (github issue number if applicable).

<!-- Either: -->
- [X] These changes do not require tests because removes only unused "use"

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: e8f9ab51cacf75d5d92c2b87a9c23eea5bd0aed3

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : b24fe9b091e9d5fe5e00fc37afb1afb9658b525e
2017-05-23 00:31:15 -05:00
Chris Pearce e5bb59cbdf Bug 1366639 - Add telemetry to track max number of PChromiumCDM video frame shmems. r=francois,gerald
This will enable us to pre-allocate the correct number of shared memory buffers
that we pre-allocate for sending video frames between the CDM and Gecko. That
means we won't need to take the slow path to recover from underestimating how
many shmems we need.



MozReview-Commit-ID: Q4mX2rYMz3

--HG--
extra : rebase_source : f9573cfbf4e65013803b46c0909be2c68566e512
2017-05-22 15:03:00 +12:00
Servo VCS Sync 1f2bbf4599 No bug - Revendor rust dependencies
--HG--
rename : third_party/rust/serde/src/bytes.rs => third_party/rust/serde-0.9.9/src/bytes.rs
rename : third_party/rust/serde/src/de/content.rs => third_party/rust/serde-0.9.9/src/de/content.rs
rename : third_party/rust/serde/src/de/private.rs => third_party/rust/serde-0.9.9/src/de/private.rs
rename : third_party/rust/serde/src/error.rs => third_party/rust/serde-0.9.9/src/error.rs
rename : third_party/rust/serde/src/iter.rs => third_party/rust/serde-0.9.9/src/iter.rs
rename : third_party/rust/serde/src/ser/content.rs => third_party/rust/serde-0.9.9/src/ser/content.rs
rename : third_party/rust/serde/src/ser/private.rs => third_party/rust/serde-0.9.9/src/ser/private.rs
rename : third_party/rust/serde/src/utils.rs => third_party/rust/serde-0.9.9/src/utils.rs
rename : third_party/rust/unicode-bidi/src/tables.rs => third_party/rust/unicode-bidi-0.2.5/src/tables.rs
2017-05-23 05:17:49 +00:00
Behnam Esfahbod 4439d58753 servo: Merge #16779 - [gfx] [layout] [style] Upgrade unicode-bidi to 0.3 (from behnam:bidi-0.3); r=mbrubeck
Depends on https://github.com/servo/unicode-bidi/pull/27 , which
upgrades `unicode-bidi` crate to `0.3.0`.

Summary of changes:

* Use `unicode_bidi::Level` (instead of `u8`) in all relevant places and
replace magic computations with (inline) method calls to Level API.

* Doing so required adding `unicode-bidi` crate dependency to two more
components here: `style` and `gfx`. IMHO, totally makes sense, as
replaces local integer manipulations/checks with well-tested ones
already available in a common dependency.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable). [N/A]

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because `unicode-bidi` has its own tests and there's no logic change in this diff.

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: edd6c2cecb2c245f9f8bcab04ff8e57f1c5d1333

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 1effb7ec83ee994e989e8f6010a926d598327022
2017-05-22 23:06:07 -05:00
Xidorn Quan 50afabec0b Bug 1328507 - Enable mochitests disabled because of this bug. r=xidorn
MozReview-Commit-ID: EA27tfe33JQ

--HG--
extra : rebase_source : d1281bd37d06e8b35faf6fac7590e2c6b8e1338c
2017-05-23 14:51:21 +10:00
heyzoos 4062fb2f77 servo: Merge #16968 - Stylist accessors (from HeyZoos:stylist-accessors); r=emilio
<!-- Please describe your changes on the following line: -->
Add accessor methods for the `device` and `ruleset` fields in the `Stylist` struct.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #16857 (github issue number if applicable).
<!-- Either: -->
- [X] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 1306b16d5a170074b4f42046a7b1a3a43952b346

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : a5e0289fe7456134e270f64236827be605ce061e
2017-05-22 20:12:46 -05:00
Shih-Chiang Chien b192c9800e Bug 1364812 - ensure OnStartRequest is called after nsHttpChannel::CallOnStartRequest. r=dragana.
1. Use ScopeExit to ensure mListener->OnStartRequest() is invoked before exit CallOnStartRequest.
2. Add assertion to ensure OnStartRequest called before OnStopRequest.

MozReview-Commit-ID: FgONlk5HPNz

--HG--
extra : rebase_source : ffe386bc8bea6defb216ecf149a29deacdb3737a
2017-05-22 16:26:22 +08:00
Shing Lyu 65cb773340 Bug 1359288 - Enable Android reftest to resume from crashes. r=jmaher
MozReview-Commit-ID: EqTOdEwfTWi

--HG--
extra : rebase_source : 36837b43159f484f911cf5183d81c3440d59736a
2017-05-10 10:38:48 +08:00
James Cheng 0c3fc26fc7 Bug 1362921 - Block GT-I9515 for adaptive playback. r=jolin
MozReview-Commit-ID: 3fmF1VYDKia

--HG--
extra : rebase_source : be4142b13ae2555c05577d3e98fefcbaa035ceb1
2017-05-23 10:28:04 +08:00
John Lin 068b62b621 Bug 1363210 - use MediaCodec async API for Lollipop MR1 (API 22) and later. r=jya
Workaround for stagefright bug in Android 5.0/Lollipop.

MozReview-Commit-ID: AYiEff0nGoj

--HG--
extra : rebase_source : fb42c483b774900ec9e933d4b9cbca37386c9d61
2017-05-19 15:49:52 +08:00
John Lin 9c6a744295 bug 1364341 - part 2: try next codec when configuration fails. r=jya
MozReview-Commit-ID: 7FUVfO4nhq8

--HG--
extra : rebase_source : 18477cb97a0e07017cbe0fcc3ff1df051c235c09
2017-05-15 17:56:19 +08:00
John Lin d164c3edbb bug 1364341 - part 1: release all resources used by existing codec when re-configure. r=jya
MozReview-Commit-ID: JLZ0vSBTg6X

--HG--
extra : rebase_source : 2b26e8156a5e0402130efd045550d3fee0cf8738
2017-05-15 16:43:49 +08:00
JW Wang 5a222af5cc Bug 1366640 - add a telemetry probe to debug main thread hang in VideoFrameContainer. r=cpearce,francois
MozReview-Commit-ID: 6crTtq1IeD9

--HG--
extra : rebase_source : 106afd126a00c63ce866781917d178aa17c29781
extra : source : 31e57a8b0c07f4053341d0f046db994b4476fd83
2017-05-19 12:37:37 +08:00
Xidorn Quan 877d656a36 Bug 1366657 - Set stylesheet and parent rules properly for keyframe rules. r=heycam
MozReview-Commit-ID: CdIm4IypeN0

--HG--
extra : rebase_source : c8bda43dc7844af93fdbef7268d206b8f91dcee9
2017-05-22 16:05:14 +10:00
Aneesh Agrawal 04992e38a1 servo: Merge #16565 - Convert nightly upload script to Python (from aneeshusa:move-upload-nightly-script-to-python); r=metajack
Now that MinGW and MSYS have been removed from the Windows builders,
bash is not available to run the previous upload_nightlies.sh script.
Convert the script to Python 2 for cross-platform support.
Additionally, switch to the `boto3` library for easy uploading
without needing to install `s3cmd`,
and move the code into mach for easy `boto3` installation
as the new `./mach upload-nightly` command.

Also, hard-code the paths to the packages instead of using
globs to look for them, as the paths are static.
(The paths used to contain timestamps,
but we now insert timestamps when uploading to S3
to improve reproducibility.)

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #16560 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because Buildbot will test them.

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 9468fae0d443b2a8b9a7694f917dc097ac6c7e60

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 593f32ad93c14cb66dd36dfdb41bb36b41a0c558
2017-05-22 18:11:19 -05:00
Ryan VanderMeulen c70bd0e2a0 Bug 1341102 - Update stylo test expectations after the landing of PR #16947. 2017-05-22 20:29:22 -04:00
Kit Cambridge d2833635e1 Bug 1352233 - Try to preserve synced folder child order in case of conflicts. r=tcsc
For folders, we resolve conflicts by taking the chronologically newer
list, then appending any missing items from the older list. This
preserves the order of those missing items relative to each other, but
not relative to those appearing in the newer list.

MozReview-Commit-ID: 6rimXpV7vLg

--HG--
extra : rebase_source : 10cda7f529cec3f71d9d45d253285d35788cb0b5
2017-04-28 14:08:11 -07:00
Gregory Szorc fbd5db6a52 Bug 1359965 - Support and generate tar.gz WPT archive; r=glandium
Several years ago there was a single zip file for all test files. Clients
would only extract the files they needed. Thus, zip was a reasonable
archive format because it allowed direct access to members without
having to decompress the entirety of the stream.

We have since split up that monolithic archive into separate,
domain-specific archives. e.g. 1 archive for mochitests and one
for xpcshell tests. This drastically cut down on network I/O
required on testers because they only fetched archives/data that
was relevant. It also enabled parallel generation of test archives,
we shaved dozens of seconds off builds due to compression being
a long pole.

Despite the architectural changes to test archive management, we
still used zip files. This is not ideal because we no longer access
specific files in test archives and thus don't care about single/partial
member access performance.

This commit implements support for generating tar.gz test archives.
And it switches the web-platform archive to a tar.gz file.

The performance implications for archive generation are significant:

before: 48,321,250 bytes; 6.05s
after:  31,844,267 bytes; 4.57s

The size is reduced because we have a single compression context
so data from 1 file can benefit compression in a subsequent file.
CPU usage is reduced because the compressor has to work less with
1 context than it does with N. While I didn't measure it, decompression
performance should also be improved for the same reasons. And of course
network I/O will be reduced.

mozharness consumers use a generic method for handling unarchiving.
This method automagically handles multiple file extensions. So as long
as downstream consumers aren't hard coding ".zip" this change should
"just work."

MozReview-Commit-ID: LQa5MIHLsms

--HG--
extra : rebase_source : 19ec875917546abc147b234a815e1a64c204b92a
2017-05-08 17:19:05 -07:00
Gregory Szorc 8a71fabf2e Bug 1359965 - Support mozpack.file.BaseFile in create_tar_from_files; r=glandium
This allows us to write files coming from a finder or other source
that isn't directly the filesystem.

MozReview-Commit-ID: KhPSD0JYzsQ

--HG--
extra : rebase_source : 10d494fc910982c3e34f4744592edca906d3a85d
2017-05-08 17:00:20 -07:00
Gregory Szorc 2b1957d1e5 Bug 1361172 - Rewrite code for finding files in VCS checkout; r=glandium
We're getting an intermittent failure running `hg manifest` in CI. I
have no clue why.

What I do know is that we now have the mozversioncontrol Python package
for containing utility code for interacting with version control. It is
slightly more robust and I'm willing to support it more than I am
check_utils.py.

This commit adds a new API to our abstract repository class to obtain the
files in the working directory by querying version control.

Since I suspect cwd was coming into play in automation, I've also
added a utility function to mozversioncontrol to attempt to find
a version control checkout from the current working directory. It
simply traces ancestor paths looking for a .hg or .git directory.

Finally, I've ported all callers of the now-deleted API to the new
one. The old code had some "../.." paths in it, meaning it only
worked when cwd was just right. Since we resolve the absolute path
to the checkout and store it on the repo object, I've updated the
code so it should work no matter what cwd is as long as a repo can
be found. I'm not 100% confident I found all consumers assuming cwd.
But it's a start.

I'm not 100% confident this will fix the intermittent issues in CI. But
at least we should get a better error message and at least we'll be
running less hacky code.

MozReview-Commit-ID: AmCraHXcTEX

--HG--
extra : rebase_source : 815ae369776577ad374333920fd645d412a55148
2017-05-18 16:06:49 -07:00
Wes Kocher 9a8d52f7af Merge m-c to autoland, a=merge
MozReview-Commit-ID: AVwPRGa5re9
2017-05-22 16:38:46 -07:00
Wes Kocher 2933592c4a Merge inbound to central, a=merge
MozReview-Commit-ID: 7NiWtCjPk84
2017-05-22 16:26:12 -07:00
Wes Kocher 7770e3d645 Backed out changeset 3b98429334b7 (bug 1365878) for android lint failures a=bustage
MozReview-Commit-ID: FTvYeHMZORS
2017-05-22 16:19:44 -07:00