]> git.lizzy.rs Git - rust.git/commitdiff
advice on josh pushing
authorRalf Jung <post@ralfj.de>
Sun, 27 Nov 2022 19:47:49 +0000 (20:47 +0100)
committerRalf Jung <post@ralfj.de>
Sun, 27 Nov 2022 19:52:17 +0000 (20:52 +0100)
src/tools/miri/CONTRIBUTING.md

index 5f46e2af0f9c3d37836b89d39b513de6ae7c1c20..c63f356607d0750a1406053fa1a0250d3c3fd424 100644 (file)
@@ -296,6 +296,13 @@ needed.
 
 ### Exporting changes to the rustc repo
 
+Keep in mind that pushing is the most complicated job that josh has to do --
+pulling just filters the rustc history, but pushing needs to construct a new
+rustc history that would filter to the given Miri history! To avoid problems, it
+is a good idea to always pull immediately before you push. In particular, you
+should never do two josh pushes without an intermediate pull; that can lead to
+duplicated commits.
+
 Josh needs to be running, as described above. We will use the josh proxy to push
 to your fork of rustc. Run the following in the Miri repo, assuming we are on an
 up-to-date master branch: