Skip to content

Commit

Permalink
Add pushlog feature for all branches (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cai0407 authored and xabolcs committed Oct 17, 2015
1 parent 4972201 commit 60e1ba7
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 22 deletions.
2 changes: 0 additions & 2 deletions extension/chrome/content/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

var nightlyApp = {

repository: ['mozilla-central','mozilla-aurora'],

storedTitle: document.documentElement.getAttribute("titlemodifier"),

get defaultTitle() {
Expand Down
2 changes: 0 additions & 2 deletions extension/chrome/content/messenger.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

var nightlyApp = {

repository: ['comm-central','comm-aurora'],

savedTabmailSetDocumentTitle: null,
tabmailSetDocumentTitle: null,

Expand Down
18 changes: 2 additions & 16 deletions extension/chrome/content/nightly.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,6 @@ getString: function(name, format) {

preferences: null,

isTrunk: function() {
let isNightlyRepo = false;

for each (var repo in nightlyApp.repository) {
isNightlyRepo = isNightlyRepo || nightly.getRepo().indexOf(repo) != -1;
}

return isNightlyRepo
&& (nightly.variables.platformversion.indexOf("pre") != -1 ||
nightly.variables.platformversion.indexOf(".0a") != -1);
},

/**
* A helper function for nsIPromptService.confirmEx().
* Popping up an alert("Hello!") is as simple as nightly.showConfirmEx({text: "Hello!"});
Expand Down Expand Up @@ -131,7 +119,7 @@ init: function() {

var changeset = nightly.getChangeset();
var currChangeset = nightly.preferences.getCharPref("currChangeset");
if (nightly.isTrunk() && (!currChangeset || changeset != currChangeset)) {
if (!currChangeset || changeset != currChangeset) {
// keep track of previous nightly's changeset for pushlog
nightly.preferences.setCharPref("prevChangeset", currChangeset);
nightly.preferences.setCharPref("currChangeset", changeset);
Expand Down Expand Up @@ -292,10 +280,8 @@ menuPopup: function(event, menupopup) {
node.hidden = !attext;
if (node.id.indexOf("-copy") != -1)
node.hidden = attext;
if (node.id == 'nightly-pushlog-lasttocurrent') {
node.hidden = !nightly.isTrunk();
if (node.id == 'nightly-pushlog-lasttocurrent')
node.disabled = !nightly.preferences.getCharPref("prevChangeset");
}
if (node.id == 'nightly-crashme')
node.hidden = !ctypes.libraryName;
if (node.id == 'nightly-compatibility')
Expand Down
2 changes: 0 additions & 2 deletions extension/chrome/content/suite.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

var nightlyApp = {

repository: ['comm-central','comm-aurora'],

_oldUpdateTitlebar: null,
debugQATitleModifierWorkaround: null,

Expand Down

0 comments on commit 60e1ba7

Please sign in to comment.