Add a utility function for encoding ETags to SHAs.

Review Request #7168 — Created April 5, 2015 and submitted — Latest diff uploaded

Information

Djblets
release-0.8.x
9a37846...

Reviewers

This adds an encode_etag() function that takes a string and turns it
into a SHA. It's meant for use when setting ETag headers.

The WebAPIResource code now uses this as well.

Unit tests pass.

Used this in an upcoming change.

    Loading...