-
Install Homebrew:
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" $ brew update $ brew install git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELETE FROM node_revisions WHERE vid IN ( | |
SELECT subquery.vid FROM ( | |
SELECT @row_num := IF(@prev_value=nr.nid,@row_num+1,1) AS RowNumber | |
,nr.nid | |
,nr.vid | |
,nr.timestamp | |
,@prev_value := nr.nid | |
FROM node_revisions nr, | |
(SELECT @row_num := 1) x, | |
(SELECT @prev_value := '') y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELETE FROM node_revisions WHERE vid IN ( | |
SELECT subquery.vid FROM ( | |
SELECT @row_num := IF(@prev_value=nr.nid,@row_num+1,1) AS RowNumber | |
,nr.nid | |
,nr.vid | |
,nr.timestamp | |
,@prev_value := nr.nid | |
FROM node_revisions nr, | |
(SELECT @row_num := 1) x, | |
(SELECT @prev_value := '') y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Copyright (c) 2007 Andy Parkins | |
# | |
# An example hook script to mail out commit update information. This hook | |
# sends emails listing new revisions to the repository introduced by the | |
# change being reported. The rule is that (for branch updates) each commit | |
# will appear on one email and one email only. | |
# | |
# This hook is stored in the contrib/hooks directory. Your distribution |