Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hg_heads=`hg log -r"$HG_NODE:tip and head() and not branch('default")" --template='{node}n'`
- for hg_head in $hg_heads; do
- if [ "$(hg diff -r"head() and branch('default')" -r$hg_head CONFIGFILENAME)" != "" ]; then
- echo "Config files differ. Please make sure default has the same config file as your other heads!"
- exit 1
- fi
- done
- exit 0
- defaulthead=$(hg log -r"head() and branch('default')")
- for head in $(hg log -r"head() and not branch('default')"); do
- if [ "$(hg diff -r$head -r$defaulthead)" != "" ]; then
- echo "Different config file for $head"
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement