Unclear cargo toml line

What does the following cargo toml line means:

sp-authority-discovery = { git = "https://github.com/paritytech/substrate.git", rev = HASH_VALUE}

Does it tell cargo that only that particular revision should be compiled and all others are ignored?

The rev identifies the specific commit in the git repository that should be used.

Should or must?