Skip to content

Instantly share code, notes, and snippets.

View gist:5a7d7eac431159521845
backouter () {
if [ $# -ne 1 ]
echo Backout a merge by closing branch of undesired merge then updating to parent of undesired merge and continuing branch from there.
echo usage: backouter BAD_MERGE_PARENT
hg pull -u && _REV_PARENT=$1
_BRANCH=$(hg log -r $_REV_PARENT --template '{branch}')
View gist:6170429
// Kinda pseudo code/java
class Person {
Person(int personID) {
database = Database()
name = database.getName(personID)
address = database.getAddr(personID)
phone = database.getPhone(personID)