Skip to content

Commit 1775e02

Browse files
committed
[firefox] support uploading multiple commits to phabricator with phlay and moz-phab
1 parent 98b1e68 commit 1775e02

6 files changed

Lines changed: 22 additions & 7 deletions

File tree

firefox/firefox-cinnabar.dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,17 @@ RUN sudo apt-get update \
3232
&& python python/mozboot/bin/bootstrap.py --no-interactive --application-choice=browser \
3333
&& sudo rm -rf /var/lib/apt/lists/*
3434

35-
# Set up Mercurial extensions for Firefox.
35+
# Set up VCS extensions for Firefox.
3636
RUN mkdir -p /home/user/.mozbuild \
3737
&& ./mach vcs-setup -u \
38-
&& echo "\n# Add Mozilla's git commands to the PATH." >> /home/user/.bashrc \
38+
&& echo "\n# Add Mozilla's Git commands to the PATH." >> /home/user/.bashrc \
3939
&& echo "PATH=\"\$PATH:/home/user/.mozbuild/version-control-tools/git/commands\"" >> /home/user/.bashrc
4040

41+
# Install Phlay to support uploading multiple commits to Phabricator.
42+
RUN git clone https://github.com/mystor/phlay/ /home/user/.phlay \
43+
&& echo "\n# Add Phlay to the PATH." >> /home/user/.bashrc \
44+
&& echo "PATH=\"\$PATH:/home/user/.phlay\"" >> /home/user/.bashrc
45+
4146
# Configure the IDEs to use Firefox's source directory as workspace.
4247
ENV WORKSPACE /home/user/firefox/
4348

firefox/firefox-git.dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,17 @@ RUN sudo apt-get update \
2929
&& python python/mozboot/bin/bootstrap.py --no-interactive --application-choice=browser \
3030
&& sudo rm -rf /var/lib/apt/lists/*
3131

32-
# Set up Mercurial extensions for Firefox.
32+
# Set up VCS extensions for Firefox.
3333
RUN mkdir -p /home/user/.mozbuild \
3434
&& ./mach vcs-setup -u \
35-
&& echo "\n# Add Mozilla's git commands to the PATH." >> /home/user/.bashrc \
35+
&& echo "\n# Add Mozilla's Git commands to the PATH." >> /home/user/.bashrc \
3636
&& echo "PATH=\"\$PATH:/home/user/.mozbuild/version-control-tools/git/commands\"" >> /home/user/.bashrc
3737

38+
# Install Phlay to support uploading multiple commits to Phabricator.
39+
RUN git clone https://github.com/mystor/phlay/ /home/user/.phlay \
40+
&& echo "\n# Add Phlay to the PATH." >> /home/user/.bashrc \
41+
&& echo "PATH=\"\$PATH:/home/user/.phlay\"" >> /home/user/.bashrc
42+
3843
# Configure the IDEs to use Firefox's source directory as workspace.
3944
ENV WORKSPACE /home/user/firefox/
4045

firefox/firefox-hg.dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ RUN sudo apt-get update \
2020
RUN mkdir -p /home/user/.mozbuild \
2121
&& ./mach vcs-setup -u
2222

23+
# Install moz-phab to support uploading multiple commits to Phabricator.
24+
RUN git clone https://github.com/mozilla-conduit/review/ /home/user/.moz-phab \
25+
&& echo "\n# Add moz-phab to the PATH." >> /home/user/.bashrc \
26+
&& echo "PATH=\"\$PATH:/home/user/.moz-phab\"" >> /home/user/.bashrc
27+
2328
# Configure the IDEs to use Firefox's source directory as workspace.
2429
ENV WORKSPACE /home/user/firefox/
2530

firefox/janitor-cinnabar.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@
3434
},
3535
"Clobber build": "./mach clobber",
3636
"Update source code": "git pull --rebase origin master",
37-
"Send to code review (Phabricator)": "arc diff"
37+
"Send to code review": "phlay"
3838
}
3939
}

firefox/janitor-git.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@
3434
},
3535
"Clobber build": "./mach clobber",
3636
"Update source code": "git pull --rebase origin master",
37-
"Send to code review (Phabricator)": "arc diff"
37+
"Send to code review": "phlay"
3838
}
3939
}

firefox/janitor-hg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@
3434
},
3535
"Clobber build": "./mach clobber",
3636
"Update source code": "hg pull -u",
37-
"Send to code review": "arc diff"
37+
"Send to code review": "moz-phab submit"
3838
}
3939
}

0 commit comments

Comments
 (0)