Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. hg_heads=`hg log -r"$HG_NODE:tip and head() and not branch('default")" --template='{node}n'`
  2. for hg_head in $hg_heads; do
  3. if [ "$(hg diff -r"head() and branch('default')" -r$hg_head CONFIGFILENAME)" != "" ]; then
  4. echo "Config files differ. Please make sure default has the same config file as your other heads!"
  5. exit 1
  6. fi
  7. done
  8. exit 0
  9.  
  10. defaulthead=$(hg log -r"head() and branch('default')")
  11. for head in $(hg log -r"head() and not branch('default')"); do
  12. if [ "$(hg diff -r$head -r$defaulthead)" != "" ]; then
  13. echo "Different config file for $head"
  14. fi
  15. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement