Skip to content

Instantly share code, notes, and snippets.

@craigtp craigtp/HGAutoUpdate
Created Jun 18, 2015

What would you like to do?
Recurse all folders beneath the current folder for Mercurial repositories and perform a "hg pull -u" on each repo.
dir -Directory -Recurse | ? { test-path (join-path $_.FullName ".hg\hgrc") } | % { $_.FullName; Set-Location -Path $_.FullName; iex "hg pull -u" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.