Skip to content

Instantly share code, notes, and snippets.

@nootanghimire
Last active August 29, 2015 14:04
Show Gist options
  • Save nootanghimire/a34d102775315033ac25 to your computer and use it in GitHub Desktop.
Save nootanghimire/a34d102775315033ac25 to your computer and use it in GitHub Desktop.
pull hg repo changeset-by-changeset
#!/bin/bash
i=$(<config-a-bash-b)
while [ $i -lt 195225 ]
do
echo "Executing: hg pull --rev $i"
hg pull --rev $i
i=$[$i+100]
echo "$i" > config-a-bash-b
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment