comparison tests/_exc-util.sh @ 905:b177fde040dd

exchange: use fixed order for obstore content The obsstore content seems unstable from one version of python to another (we most certainly use some dict) we fix the order once and for all.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Tue, 22 Apr 2014 17:00:24 -0700
parents 001f8508910a
children f7f4a1fac6c0
comparison
equal deleted inserted replaced
904:c204e2205876 905:b177fde040dd
58 targetnode="`hg -R main id -qr \"$desccall\"`" 58 targetnode="`hg -R main id -qr \"$desccall\"`"
59 echo "# testing echange of \"$target\" ($targetnode)" 59 echo "# testing echange of \"$target\" ($targetnode)"
60 fi 60 fi
61 echo "## initial state" 61 echo "## initial state"
62 echo "# obstore: main" 62 echo "# obstore: main"
63 hg -R main debugobsolete 63 hg -R main debugobsolete | sort
64 echo "# obstore: pushdest" 64 echo "# obstore: pushdest"
65 hg -R pushdest debugobsolete 65 hg -R pushdest debugobsolete | sort
66 echo "# obstore: pulldest" 66 echo "# obstore: pulldest"
67 hg -R pulldest debugobsolete 67 hg -R pulldest debugobsolete | sort
68 68
69 if [ -n "$target" ]; then 69 if [ -n "$target" ]; then
70 echo "## pushing \"$target\"" from main to pushdest 70 echo "## pushing \"$target\"" from main to pushdest
71 hg -R main push -r "$desccall" $@ pushdest 71 hg -R main push -r "$desccall" $@ pushdest
72 else 72 else
73 echo "## pushing from main to pushdest" 73 echo "## pushing from main to pushdest"
74 hg -R main push pushdest $@ 74 hg -R main push pushdest $@
75 fi 75 fi
76 echo "## post push state" 76 echo "## post push state"
77 echo "# obstore: main" 77 echo "# obstore: main"
78 hg -R main debugobsolete 78 hg -R main debugobsolete | sort
79 echo "# obstore: pushdest" 79 echo "# obstore: pushdest"
80 hg -R pushdest debugobsolete 80 hg -R pushdest debugobsolete | sort
81 echo "# obstore: pulldest" 81 echo "# obstore: pulldest"
82 hg -R pulldest debugobsolete 82 hg -R pulldest debugobsolete | sort
83 if [ -n "$target" ]; then 83 if [ -n "$target" ]; then
84 echo "## pulling \"$targetnode\"" from main into pulldest 84 echo "## pulling \"$targetnode\"" from main into pulldest
85 hg -R pulldest pull -r $targetnode $@ main 85 hg -R pulldest pull -r $targetnode $@ main
86 else 86 else
87 echo "## pulling from main into pulldest" 87 echo "## pulling from main into pulldest"
88 hg -R pulldest pull main $@ 88 hg -R pulldest pull main $@
89 fi 89 fi
90 echo "## post pull state" 90 echo "## post pull state"
91 echo "# obstore: main" 91 echo "# obstore: main"
92 hg -R main debugobsolete 92 hg -R main debugobsolete | sort
93 echo "# obstore: pushdest" 93 echo "# obstore: pushdest"
94 hg -R pushdest debugobsolete 94 hg -R pushdest debugobsolete | sort
95 echo "# obstore: pulldest" 95 echo "# obstore: pulldest"
96 hg -R pulldest debugobsolete 96 hg -R pulldest debugobsolete | sort
97 97
98 cd .. 98 cd ..
99 99
100 } 100 }