Skip to content

Instantly share code, notes, and snippets.

Avatar

William Gross william-gross

View GitHub Profile
@william-gross
william-gross / mtmsync.ps1
Created Feb 12, 2015
Updates the GitHub mirror of Media Type Map
View mtmsync.ps1
cd media-type-map
git pull https://enduracode.kilnhg.com/Code/Ewl/Dependencies/MediaTypeMap.git
git push origin
@william-gross
william-gross / hasync.ps1
Created Dec 31, 2014
Updates the GitHub mirror of Humanizer Annotations
View hasync.ps1
cd humanizer-annotations
git pull https://enduracode.kilnhg.com/Code/Ewl/ReSharperAnnotations/Humanizer.git
git push origin
@william-gross
william-gross / nextMerge
Last active Aug 29, 2015
Mercurial revsets alias that lets you merge two complex branches while avoiding "criss-cross" merges
View nextMerge
[revsetalias]
# The first parameter is the merge destination. The second is the set of changesets that you'd ultimately like to merge.
# If multiple changesets are returned, recursion is required. Please rerun with the head changeset as the second argument.
#
# Implementing this within Mercurial or as an extension would be better because we'd be able to automatically perform the recursion.
nextMerge($1,$2) = nextMergeForSingleHead( $1, oldest( heads( $2 - ancestors($1) ) ) )
# In the following aliases, each parameter should be a single changeset.
@william-gross
william-gross / ewlsync.ps1
Created Mar 13, 2014
Updates the GitHub mirror of EWL
View ewlsync.ps1
cd enterprise-web-library
git pull https://enduracode.kilnhg.com/Code/Ewl/Group/Canonical.git
git push origin