diff --git a/build/bundle.js b/build/bundle.js index 064b8445..e5a6dbf0 100644 --- a/build/bundle.js +++ b/build/bundle.js @@ -8490,7 +8490,7 @@ GitEngine.prototype.updateCommitParentsForHgRebase = function(commitSet) { }; GitEngine.prototype.pruneTreeAndPlay = function() { - return this.pruneTree() && + return this.pruneTree() && this.animationFactory.playRefreshAnimationSlow(this.gitVisuals); }; @@ -8520,9 +8520,11 @@ GitEngine.prototype.pruneTree = function() { _.each(toDelete, function(commit) { commit.removeFromParents(); this.commitCollection.remove(commit); + var ID = commit.get('id'); this.refs[ID] = undefined; delete this.refs[ID]; + var visNode = commit.get('visNode'); if (visNode) { visNode.removeAll(); @@ -26767,7 +26769,7 @@ GitEngine.prototype.updateCommitParentsForHgRebase = function(commitSet) { }; GitEngine.prototype.pruneTreeAndPlay = function() { - return this.pruneTree() && + return this.pruneTree() && this.animationFactory.playRefreshAnimationSlow(this.gitVisuals); }; @@ -26797,9 +26799,11 @@ GitEngine.prototype.pruneTree = function() { _.each(toDelete, function(commit) { commit.removeFromParents(); this.commitCollection.remove(commit); + var ID = commit.get('id'); this.refs[ID] = undefined; delete this.refs[ID]; + var visNode = commit.get('visNode'); if (visNode) { visNode.removeAll(); diff --git a/src/js/git/index.js b/src/js/git/index.js index ace0562c..253df8e5 100644 --- a/src/js/git/index.js +++ b/src/js/git/index.js @@ -1351,9 +1351,11 @@ GitEngine.prototype.pruneTree = function() { _.each(toDelete, function(commit) { commit.removeFromParents(); this.commitCollection.remove(commit); + var ID = commit.get('id'); this.refs[ID] = undefined; delete this.refs[ID]; + var visNode = commit.get('visNode'); if (visNode) { visNode.removeAll(); diff --git a/todo.txt b/todo.txt index 102df21a..e6f35fb7 100644 --- a/todo.txt +++ b/todo.txt @@ -41,6 +41,7 @@ Ideas for cleaning Done things: (I only started this on Dec 17th 2012 to get a better sense of what was done) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +[x] TONS of hg stuff [x] finally work on an upload / download animation [x] factor out golf thing too [x] factor regexes and instant commands into one module