Add a Pijul demo that show reordering patches behaviour
[?]
Oct 1, 2021, 8:57 AM
F3AD6JXXPNTLIUXPX7CUPZCD53SLZFKCSSNVQDW6Q32BUIT2RNWACDependencies
- [2]
I3EH5ASIImprove speaker notes - [3]
YZWWU6JGSpeaker notes improvements - [4]
UYGSVBN7Start the fossil demo - [5]
5LKTNB6OLOTS of progress - [6]
NYFLNSVVAdd some contents - [7]
UXLO2KVDIntroduce fragments - [8]
5JGZ5VE7Add unrecord to Pijul demo - [9]
73PQOETUUpdate slides to 2021 situation - [10]
CBUCBYTVProgress - [11]
D7QXCWGAProgress - [12]
SQWPGFUEFinish the demos - [13]
GHBCQL5FSpeaker notes improvements - [14]
ISYGO74YShorten the talk a bit - [*]
ARAFRHKUCreate the outline of the talk - [*]
QUG3TDX3Update to reveal.js 4.1 and a few small fixes
Change contents
- replacement in sections/5-fossil.md at line 106
touch Sample.javavi Sample.javapublic class Sample {} - replacement in sections/5-fossil.md at line 119
public class Sample {}vi Sample.java// roll the die on stage!!public static void main(String... args) {System.out.println(random());}private static int random() {// Chosen by fair dice roll; guaranteed to be random.return 4;} - edit in sections/6-pijul.md at line 90
* Reordering patches - edit in sections/6-pijul.md at line 101
touch Sample.javapijul statuspijul add Sample.javamkdir directorypijul add directory - edit in sections/6-pijul.md at line 102[2.452]→[2.452:469](∅→∅),[2.469]→[4.1494:1495](∅→∅),[4.6529]→[4.1494:1495](∅→∅),[4.1494]→[4.1494:1495](∅→∅),[4.1495]→[2.470:742](∅→∅),[2.742]→[4.1759:1790](∅→∅),[4.6806]→[4.1759:1790](∅→∅),[4.1759]→[4.1759:1790](∅→∅)
pijul record(Here `y` means yes, `n` means no, `k` means undo and remake last decision, `a` means include this and all remaining patches, `d` means include neither this patch nor the remaining patches and `i` means ignore this file locally (i.e. it is added to .pijul/local/ignore).)### Generating random numbers - replacement in sections/6-pijul.md at line 103
**!!! Roll the die on stage !!!**### Recording patches - edit in sections/6-pijul.md at line 105[4.1824][17.8619]
vi Sample.java - replacement in sections/6-pijul.md at line 111
// Chosen by fair dice roll; guaranteed to be random.return 4;return java.util.concurrent.ThreadLocalRandom.current().nextInt(1, 7); - edit in sections/6-pijul.md at line 113[4.2090]→[4.2090:2140](∅→∅),[4.57051]→[4.2232:2266](∅→∅),[4.2232]→[4.2232:2266](∅→∅),[4.2266]→[4.57052:57106](∅→∅)
}pijul add Sample.javapijul recordprivate static int random() {return 1 + new java.util.Random().nextInt(6); - edit in sections/6-pijul.md at line 114[4.57108]→[4.2314:2357](∅→∅),[4.2314]→[4.2314:2357](∅→∅),[4.57110]→[4.2453:2487](∅→∅),[4.2453]→[4.2453:2487](∅→∅),[4.2487]→[3.238:317](∅→∅),[3.317]→[4.2537:2543](∅→∅),[4.57169]→[4.2537:2543](∅→∅),[4.2537]→[4.2537:2543](∅→∅),[4.57171]→[4.2544:2570](∅→∅),[4.2544]→[4.2544:2570](∅→∅),[4.2570]→[4.2:19](∅→∅),[4.20]→[4.20:88](∅→∅)
pijul add Sample.javapijul recordprivate static int random() {return java.util.concurrent.ThreadLocalRandom.current().nextInt(1, 7);}pijul add Sample.javapijul recordpijul unrecord // unrecord all patches and squash them into one - edit in sections/6-pijul.md at line 115
mkdir directorypijul add directorypijul status - edit in sections/6-pijul.md at line 119
(Here `y` means yes, `n` means no, `k` means undo and remake last decision, `a` means include this and all remaining patches, `d` means include neither this patch nor the remaining patches and `i` means ignore this file locally (i.e. it is added to .pijul/local/ignore).)### Reordering patches - replacement in sections/6-pijul.md at line 124
Zie `misc/MyRandom.java` voor als je de details vergeet.pijul init beers-and-moviescd beers-and-moviestouch README.mdpijul add README.mdpijul record -m "Initial patch"pijul fork next-weekpijul branchespijul checkout mastervi movies.txtpijul record -m "Watched a movie"vi beers.txtpijul add beers.txtpijul record -m "Drank a beer"vi movies.txtpijul add movies.txtpijul record -m "Watched another movie"pijul logpijul checkout next-weekpijul apply <hash> (beer)lspijul apply <hash> (another movie)pijul apply <hash> (movie)pijul apply <hash> (another movie)