equal
deleted
inserted
replaced
131 $ find_dirstate_uuid () { |
131 $ find_dirstate_uuid () { |
132 > hg debugstate --docket | grep uuid | sed 's/.*uuid: \(.*\)/\1/' |
132 > hg debugstate --docket | grep uuid | sed 's/.*uuid: \(.*\)/\1/' |
133 > } |
133 > } |
134 |
134 |
135 $ dirstate_uuid_has_not_changed () { |
135 $ dirstate_uuid_has_not_changed () { |
136 > # Pure Python always rewrites the whole dirstate |
136 > # Non-Rust always rewrites the whole dirstate |
137 > if [ $# -eq 1 ] || [ "$HGMODULEPOLICY" = *"rust"* ] || [ -n "$RHG_INSTALLED_AS_HG" ]; then |
137 > if [ $# -eq 1 ] || ([ -n "$HGMODULEPOLICY" ] && [ -z "${HGMODULEPOLICY##*rust*}" ]) || [ -n "$RHG_INSTALLED_AS_HG" ]; then |
138 > test $current_uid = $(find_dirstate_uuid) |
138 > test $current_uid = $(find_dirstate_uuid) |
139 > fi |
139 > fi |
140 > } |
140 > } |
141 |
141 |
142 $ cd .. |
142 $ cd .. |