mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 08:28:50 +02:00
rename branches for hackathon demo
This commit is contained in:
parent
e7709223c3
commit
9e88510dc7
8 changed files with 33 additions and 48 deletions
|
@ -6070,34 +6070,34 @@ var initDemo = function(sandbox) {
|
||||||
];
|
];
|
||||||
} else if (params.hasOwnProperty('hgdemo')) {
|
} else if (params.hasOwnProperty('hgdemo')) {
|
||||||
commands = [
|
commands = [
|
||||||
'importTreeNow {"branches":{"master":{"target":"C3","id":"master"},"side":{"target":"C2","id":"side"},"debug":{"target":"C4","id":"debug"}},"commits":{"C0":{"parents":[],"id":"C0","rootCommit":true},"C1":{"parents":["C0"],"id":"C1"},"C2":{"parents":["C1"],"id":"C2"},"C3":{"parents":["C1"],"id":"C3"},"C4":{"parents":["C2"],"id":"C4"}},"HEAD":{"target":"side","id":"HEAD"}}',
|
'importTreeNow {"branches":{"master":{"target":"C3","id":"master"},"feature":{"target":"C2","id":"feature"},"debug":{"target":"C4","id":"debug"}},"commits":{"C0":{"parents":[],"id":"C0","rootCommit":true},"C1":{"parents":["C0"],"id":"C1"},"C2":{"parents":["C1"],"id":"C2"},"C3":{"parents":["C1"],"id":"C3"},"C4":{"parents":["C2"],"id":"C4"}},"HEAD":{"target":"feature","id":"HEAD"}}',
|
||||||
'delay 5000',
|
'delay 7000',
|
||||||
'git rebase master',
|
'git rebase master',
|
||||||
'delay 5000',
|
'delay 2000',
|
||||||
'undo',
|
'undo',
|
||||||
'hg book',
|
'hg book',
|
||||||
'delay 5000',
|
'delay 2000',
|
||||||
'hg rebase -d master'
|
'hg rebase -d master'
|
||||||
];
|
];
|
||||||
commands = commands.join(';#').split('#'); // hax
|
commands = commands.join(';#').split('#'); // hax
|
||||||
} else if (params.hasOwnProperty('hgdemo2')) {
|
} else if (params.hasOwnProperty('hgdemo2')) {
|
||||||
commands = [
|
commands = [
|
||||||
'importTreeNow {"branches":{"master":{"target":"C3","id":"master"},"side":{"target":"C2","id":"side"},"debug":{"target":"C4","id":"debug"}},"commits":{"C0":{"parents":[],"id":"C0","rootCommit":true},"C1":{"parents":["C0"],"id":"C1"},"C2":{"parents":["C1"],"id":"C2"},"C3":{"parents":["C1"],"id":"C3"},"C4":{"parents":["C2"],"id":"C4"}},"HEAD":{"target":"debug","id":"HEAD"}}',
|
'importTreeNow {"branches":{"master":{"target":"C3","id":"master"},"feature":{"target":"C2","id":"feature"},"debug":{"target":"C4","id":"debug"}},"commits":{"C0":{"parents":[],"id":"C0","rootCommit":true},"C1":{"parents":["C0"],"id":"C1"},"C2":{"parents":["C1"],"id":"C2"},"C3":{"parents":["C1"],"id":"C3"},"C4":{"parents":["C2"],"id":"C4"}},"HEAD":{"target":"debug","id":"HEAD"}}',
|
||||||
'delay 5000',
|
'delay 5000',
|
||||||
'git rebase master',
|
'git rebase master',
|
||||||
'delay 5000',
|
'delay 2000',
|
||||||
'undo',
|
'undo',
|
||||||
'hg sum',
|
'hg sum',
|
||||||
'delay 5000',
|
'delay 2000',
|
||||||
'hg rebase -d master'
|
'hg rebase -d master'
|
||||||
];
|
];
|
||||||
commands = commands.join(';#').split('#'); // hax
|
commands = commands.join(';#').split('#'); // hax
|
||||||
} else if (params.hasOwnProperty('hgdemo3')) {
|
} else if (params.hasOwnProperty('hgdemo3')) {
|
||||||
commands = [
|
commands = [
|
||||||
'importTreeNow {"branches":{"master":{"target":"C1","id":"master"},"foo":{"target":"C2","id":"foo"},"bar":{"target":"C5","id":"bar"},"baz":{"target":"C4","id":"baz"}},"commits":{"C0":{"parents":[],"id":"C0","rootCommit":true},"C1":{"parents":["C0"],"id":"C1"},"C2":{"parents":["C1"],"id":"C2"},"C3":{"parents":["C1"],"id":"C3"},"C4":{"parents":["C3"],"id":"C4"},"C5":{"parents":["C3"],"id":"C5"}},"HEAD":{"target":"bar","id":"HEAD"}}',
|
'importTreeNow {"branches":{"master":{"target":"C1","id":"master"},"trunk":{"target":"C2","id":"trunk"},"feature":{"target":"C5","id":"feature"},"debug":{"target":"C4","id":"debug"}},"commits":{"C0":{"parents":[],"id":"C0","rootCommit":true},"C1":{"parents":["C0"],"id":"C1"},"C2":{"parents":["C1"],"id":"C2"},"C3":{"parents":["C1"],"id":"C3"},"C4":{"parents":["C3"],"id":"C4"},"C5":{"parents":["C3"],"id":"C5"}},"HEAD":{"target":"feature","id":"HEAD"}}',
|
||||||
'hg book',
|
'hg book',
|
||||||
'delay 2000',
|
'delay 2000',
|
||||||
'hg rebase -d foo'
|
'hg rebase -d trunk'
|
||||||
];
|
];
|
||||||
commands = commands.join(';#').split('#'); // hax
|
commands = commands.join(';#').split('#'); // hax
|
||||||
} else if (!params.hasOwnProperty('NODEMO')) {
|
} else if (!params.hasOwnProperty('NODEMO')) {
|
||||||
|
@ -9591,12 +9591,8 @@ var Commit = Backbone.Model.extend({
|
||||||
}
|
}
|
||||||
var parent = parents[0];
|
var parent = parents[0];
|
||||||
var parentID = parent.get('id');
|
var parentID = parent.get('id');
|
||||||
console.log('i am ', this.get('id'));
|
|
||||||
if (this.get('id') === 'C4') {
|
|
||||||
debugger;
|
|
||||||
}
|
|
||||||
|
|
||||||
var newestID = engine.getMostRecentBumpedID(parentID);
|
var newestID = engine.getMostRecentBumpedID(parentID);
|
||||||
|
|
||||||
if (parentID === newestID) {
|
if (parentID === newestID) {
|
||||||
// BOOM done, its already updated
|
// BOOM done, its already updated
|
||||||
return;
|
return;
|
||||||
|
@ -11042,7 +11038,6 @@ exports.instantCommands = instantCommands;
|
||||||
require.define("/src/js/mercurial/commands.js",function(require,module,exports,__dirname,__filename,process,global){var _ = require('underscore');
|
require.define("/src/js/mercurial/commands.js",function(require,module,exports,__dirname,__filename,process,global){var _ = require('underscore');
|
||||||
var intl = require('../intl');
|
var intl = require('../intl');
|
||||||
|
|
||||||
var Commands = require('../commands').commands;
|
|
||||||
var GitCommands = require('../git/commands');
|
var GitCommands = require('../git/commands');
|
||||||
var Errors = require('../util/errors');
|
var Errors = require('../util/errors');
|
||||||
|
|
||||||
|
@ -24092,34 +24087,34 @@ var initDemo = function(sandbox) {
|
||||||
];
|
];
|
||||||
} else if (params.hasOwnProperty('hgdemo')) {
|
} else if (params.hasOwnProperty('hgdemo')) {
|
||||||
commands = [
|
commands = [
|
||||||
'importTreeNow {"branches":{"master":{"target":"C3","id":"master"},"side":{"target":"C2","id":"side"},"debug":{"target":"C4","id":"debug"}},"commits":{"C0":{"parents":[],"id":"C0","rootCommit":true},"C1":{"parents":["C0"],"id":"C1"},"C2":{"parents":["C1"],"id":"C2"},"C3":{"parents":["C1"],"id":"C3"},"C4":{"parents":["C2"],"id":"C4"}},"HEAD":{"target":"side","id":"HEAD"}}',
|
'importTreeNow {"branches":{"master":{"target":"C3","id":"master"},"feature":{"target":"C2","id":"feature"},"debug":{"target":"C4","id":"debug"}},"commits":{"C0":{"parents":[],"id":"C0","rootCommit":true},"C1":{"parents":["C0"],"id":"C1"},"C2":{"parents":["C1"],"id":"C2"},"C3":{"parents":["C1"],"id":"C3"},"C4":{"parents":["C2"],"id":"C4"}},"HEAD":{"target":"feature","id":"HEAD"}}',
|
||||||
'delay 5000',
|
'delay 7000',
|
||||||
'git rebase master',
|
'git rebase master',
|
||||||
'delay 5000',
|
'delay 2000',
|
||||||
'undo',
|
'undo',
|
||||||
'hg book',
|
'hg book',
|
||||||
'delay 5000',
|
'delay 2000',
|
||||||
'hg rebase -d master'
|
'hg rebase -d master'
|
||||||
];
|
];
|
||||||
commands = commands.join(';#').split('#'); // hax
|
commands = commands.join(';#').split('#'); // hax
|
||||||
} else if (params.hasOwnProperty('hgdemo2')) {
|
} else if (params.hasOwnProperty('hgdemo2')) {
|
||||||
commands = [
|
commands = [
|
||||||
'importTreeNow {"branches":{"master":{"target":"C3","id":"master"},"side":{"target":"C2","id":"side"},"debug":{"target":"C4","id":"debug"}},"commits":{"C0":{"parents":[],"id":"C0","rootCommit":true},"C1":{"parents":["C0"],"id":"C1"},"C2":{"parents":["C1"],"id":"C2"},"C3":{"parents":["C1"],"id":"C3"},"C4":{"parents":["C2"],"id":"C4"}},"HEAD":{"target":"debug","id":"HEAD"}}',
|
'importTreeNow {"branches":{"master":{"target":"C3","id":"master"},"feature":{"target":"C2","id":"feature"},"debug":{"target":"C4","id":"debug"}},"commits":{"C0":{"parents":[],"id":"C0","rootCommit":true},"C1":{"parents":["C0"],"id":"C1"},"C2":{"parents":["C1"],"id":"C2"},"C3":{"parents":["C1"],"id":"C3"},"C4":{"parents":["C2"],"id":"C4"}},"HEAD":{"target":"debug","id":"HEAD"}}',
|
||||||
'delay 5000',
|
'delay 5000',
|
||||||
'git rebase master',
|
'git rebase master',
|
||||||
'delay 5000',
|
'delay 2000',
|
||||||
'undo',
|
'undo',
|
||||||
'hg sum',
|
'hg sum',
|
||||||
'delay 5000',
|
'delay 2000',
|
||||||
'hg rebase -d master'
|
'hg rebase -d master'
|
||||||
];
|
];
|
||||||
commands = commands.join(';#').split('#'); // hax
|
commands = commands.join(';#').split('#'); // hax
|
||||||
} else if (params.hasOwnProperty('hgdemo3')) {
|
} else if (params.hasOwnProperty('hgdemo3')) {
|
||||||
commands = [
|
commands = [
|
||||||
'importTreeNow {"branches":{"master":{"target":"C1","id":"master"},"foo":{"target":"C2","id":"foo"},"bar":{"target":"C5","id":"bar"},"baz":{"target":"C4","id":"baz"}},"commits":{"C0":{"parents":[],"id":"C0","rootCommit":true},"C1":{"parents":["C0"],"id":"C1"},"C2":{"parents":["C1"],"id":"C2"},"C3":{"parents":["C1"],"id":"C3"},"C4":{"parents":["C3"],"id":"C4"},"C5":{"parents":["C3"],"id":"C5"}},"HEAD":{"target":"bar","id":"HEAD"}}',
|
'importTreeNow {"branches":{"master":{"target":"C1","id":"master"},"trunk":{"target":"C2","id":"trunk"},"feature":{"target":"C5","id":"feature"},"debug":{"target":"C4","id":"debug"}},"commits":{"C0":{"parents":[],"id":"C0","rootCommit":true},"C1":{"parents":["C0"],"id":"C1"},"C2":{"parents":["C1"],"id":"C2"},"C3":{"parents":["C1"],"id":"C3"},"C4":{"parents":["C3"],"id":"C4"},"C5":{"parents":["C3"],"id":"C5"}},"HEAD":{"target":"feature","id":"HEAD"}}',
|
||||||
'hg book',
|
'hg book',
|
||||||
'delay 2000',
|
'delay 2000',
|
||||||
'hg rebase -d foo'
|
'hg rebase -d trunk'
|
||||||
];
|
];
|
||||||
commands = commands.join(';#').split('#'); // hax
|
commands = commands.join(';#').split('#'); // hax
|
||||||
} else if (!params.hasOwnProperty('NODEMO')) {
|
} else if (!params.hasOwnProperty('NODEMO')) {
|
||||||
|
@ -27930,12 +27925,8 @@ var Commit = Backbone.Model.extend({
|
||||||
}
|
}
|
||||||
var parent = parents[0];
|
var parent = parents[0];
|
||||||
var parentID = parent.get('id');
|
var parentID = parent.get('id');
|
||||||
console.log('i am ', this.get('id'));
|
|
||||||
if (this.get('id') === 'C4') {
|
|
||||||
debugger;
|
|
||||||
}
|
|
||||||
|
|
||||||
var newestID = engine.getMostRecentBumpedID(parentID);
|
var newestID = engine.getMostRecentBumpedID(parentID);
|
||||||
|
|
||||||
if (parentID === newestID) {
|
if (parentID === newestID) {
|
||||||
// BOOM done, its already updated
|
// BOOM done, its already updated
|
||||||
return;
|
return;
|
||||||
|
@ -30968,7 +30959,6 @@ require("/src/js/log/index.js");
|
||||||
require.define("/src/js/mercurial/commands.js",function(require,module,exports,__dirname,__filename,process,global){var _ = require('underscore');
|
require.define("/src/js/mercurial/commands.js",function(require,module,exports,__dirname,__filename,process,global){var _ = require('underscore');
|
||||||
var intl = require('../intl');
|
var intl = require('../intl');
|
||||||
|
|
||||||
var Commands = require('../commands').commands;
|
|
||||||
var GitCommands = require('../git/commands');
|
var GitCommands = require('../git/commands');
|
||||||
var Errors = require('../util/errors');
|
var Errors = require('../util/errors');
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
1
build/bundle.min.0f9e6599.js
Normal file
1
build/bundle.min.0f9e6599.js
Normal file
File diff suppressed because one or more lines are too long
2
build/bundle.min.js
vendored
2
build/bundle.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -445,7 +445,7 @@
|
||||||
For a much easier time perusing the source, see the individual files at:
|
For a much easier time perusing the source, see the individual files at:
|
||||||
https://github.com/pcottle/learnGitBranching
|
https://github.com/pcottle/learnGitBranching
|
||||||
-->
|
-->
|
||||||
<script src="build/bundle.min.0f376abe.js"></script>
|
<script src="build/bundle.min.0f9e6599.js"></script>
|
||||||
|
|
||||||
<!-- The advantage of github pages: super-easy, simple, slick static hostic.
|
<!-- The advantage of github pages: super-easy, simple, slick static hostic.
|
||||||
The downside? No raw logs to parse for analytics, so I have to include
|
The downside? No raw logs to parse for analytics, so I have to include
|
||||||
|
|
|
@ -138,34 +138,34 @@ var initDemo = function(sandbox) {
|
||||||
];
|
];
|
||||||
} else if (params.hasOwnProperty('hgdemo')) {
|
} else if (params.hasOwnProperty('hgdemo')) {
|
||||||
commands = [
|
commands = [
|
||||||
'importTreeNow {"branches":{"master":{"target":"C3","id":"master"},"side":{"target":"C2","id":"side"},"debug":{"target":"C4","id":"debug"}},"commits":{"C0":{"parents":[],"id":"C0","rootCommit":true},"C1":{"parents":["C0"],"id":"C1"},"C2":{"parents":["C1"],"id":"C2"},"C3":{"parents":["C1"],"id":"C3"},"C4":{"parents":["C2"],"id":"C4"}},"HEAD":{"target":"side","id":"HEAD"}}',
|
'importTreeNow {"branches":{"master":{"target":"C3","id":"master"},"feature":{"target":"C2","id":"feature"},"debug":{"target":"C4","id":"debug"}},"commits":{"C0":{"parents":[],"id":"C0","rootCommit":true},"C1":{"parents":["C0"],"id":"C1"},"C2":{"parents":["C1"],"id":"C2"},"C3":{"parents":["C1"],"id":"C3"},"C4":{"parents":["C2"],"id":"C4"}},"HEAD":{"target":"feature","id":"HEAD"}}',
|
||||||
'delay 5000',
|
'delay 7000',
|
||||||
'git rebase master',
|
'git rebase master',
|
||||||
'delay 5000',
|
'delay 2000',
|
||||||
'undo',
|
'undo',
|
||||||
'hg book',
|
'hg book',
|
||||||
'delay 5000',
|
'delay 2000',
|
||||||
'hg rebase -d master'
|
'hg rebase -d master'
|
||||||
];
|
];
|
||||||
commands = commands.join(';#').split('#'); // hax
|
commands = commands.join(';#').split('#'); // hax
|
||||||
} else if (params.hasOwnProperty('hgdemo2')) {
|
} else if (params.hasOwnProperty('hgdemo2')) {
|
||||||
commands = [
|
commands = [
|
||||||
'importTreeNow {"branches":{"master":{"target":"C3","id":"master"},"side":{"target":"C2","id":"side"},"debug":{"target":"C4","id":"debug"}},"commits":{"C0":{"parents":[],"id":"C0","rootCommit":true},"C1":{"parents":["C0"],"id":"C1"},"C2":{"parents":["C1"],"id":"C2"},"C3":{"parents":["C1"],"id":"C3"},"C4":{"parents":["C2"],"id":"C4"}},"HEAD":{"target":"debug","id":"HEAD"}}',
|
'importTreeNow {"branches":{"master":{"target":"C3","id":"master"},"feature":{"target":"C2","id":"feature"},"debug":{"target":"C4","id":"debug"}},"commits":{"C0":{"parents":[],"id":"C0","rootCommit":true},"C1":{"parents":["C0"],"id":"C1"},"C2":{"parents":["C1"],"id":"C2"},"C3":{"parents":["C1"],"id":"C3"},"C4":{"parents":["C2"],"id":"C4"}},"HEAD":{"target":"debug","id":"HEAD"}}',
|
||||||
'delay 5000',
|
'delay 5000',
|
||||||
'git rebase master',
|
'git rebase master',
|
||||||
'delay 5000',
|
'delay 2000',
|
||||||
'undo',
|
'undo',
|
||||||
'hg sum',
|
'hg sum',
|
||||||
'delay 5000',
|
'delay 2000',
|
||||||
'hg rebase -d master'
|
'hg rebase -d master'
|
||||||
];
|
];
|
||||||
commands = commands.join(';#').split('#'); // hax
|
commands = commands.join(';#').split('#'); // hax
|
||||||
} else if (params.hasOwnProperty('hgdemo3')) {
|
} else if (params.hasOwnProperty('hgdemo3')) {
|
||||||
commands = [
|
commands = [
|
||||||
'importTreeNow {"branches":{"master":{"target":"C1","id":"master"},"foo":{"target":"C2","id":"foo"},"bar":{"target":"C5","id":"bar"},"baz":{"target":"C4","id":"baz"}},"commits":{"C0":{"parents":[],"id":"C0","rootCommit":true},"C1":{"parents":["C0"],"id":"C1"},"C2":{"parents":["C1"],"id":"C2"},"C3":{"parents":["C1"],"id":"C3"},"C4":{"parents":["C3"],"id":"C4"},"C5":{"parents":["C3"],"id":"C5"}},"HEAD":{"target":"bar","id":"HEAD"}}',
|
'importTreeNow {"branches":{"master":{"target":"C1","id":"master"},"trunk":{"target":"C2","id":"trunk"},"feature":{"target":"C5","id":"feature"},"debug":{"target":"C4","id":"debug"}},"commits":{"C0":{"parents":[],"id":"C0","rootCommit":true},"C1":{"parents":["C0"],"id":"C1"},"C2":{"parents":["C1"],"id":"C2"},"C3":{"parents":["C1"],"id":"C3"},"C4":{"parents":["C3"],"id":"C4"},"C5":{"parents":["C3"],"id":"C5"}},"HEAD":{"target":"feature","id":"HEAD"}}',
|
||||||
'hg book',
|
'hg book',
|
||||||
'delay 2000',
|
'delay 2000',
|
||||||
'hg rebase -d foo'
|
'hg rebase -d trunk'
|
||||||
];
|
];
|
||||||
commands = commands.join(';#').split('#'); // hax
|
commands = commands.join(';#').split('#'); // hax
|
||||||
} else if (!params.hasOwnProperty('NODEMO')) {
|
} else if (!params.hasOwnProperty('NODEMO')) {
|
||||||
|
|
|
@ -2370,12 +2370,8 @@ var Commit = Backbone.Model.extend({
|
||||||
}
|
}
|
||||||
var parent = parents[0];
|
var parent = parents[0];
|
||||||
var parentID = parent.get('id');
|
var parentID = parent.get('id');
|
||||||
console.log('i am ', this.get('id'));
|
|
||||||
if (this.get('id') === 'C4') {
|
|
||||||
debugger;
|
|
||||||
}
|
|
||||||
|
|
||||||
var newestID = engine.getMostRecentBumpedID(parentID);
|
var newestID = engine.getMostRecentBumpedID(parentID);
|
||||||
|
|
||||||
if (parentID === newestID) {
|
if (parentID === newestID) {
|
||||||
// BOOM done, its already updated
|
// BOOM done, its already updated
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
var _ = require('underscore');
|
var _ = require('underscore');
|
||||||
var intl = require('../intl');
|
var intl = require('../intl');
|
||||||
|
|
||||||
var Commands = require('../commands').commands;
|
|
||||||
var GitCommands = require('../git/commands');
|
var GitCommands = require('../git/commands');
|
||||||
var Errors = require('../util/errors');
|
var Errors = require('../util/errors');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue