Skip to content

Instantly share code, notes, and snippets.

@craigtp
Created June 18, 2015 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save craigtp/84453ac47c892e1453ee to your computer and use it in GitHub Desktop.
Save craigtp/84453ac47c892e1453ee to your computer and use it in GitHub Desktop.
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