• 
      

    Add a utility function for encoding ETags to SHAs.

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

    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.

    Description From Last Updated

    'sha1' imported but unused

    reviewbotreviewbot
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          djblets/webapi/resources.py
          djblets/util/http.py
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          djblets/webapi/resources.py
          djblets/util/http.py
      
      
    2. djblets/webapi/resources.py (Diff revision 1)
       
       
      Show all issues
       'sha1' imported but unused
      
    3. 
        
    david
    1. Once Review Bot is happy, I am too.

    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-0.8.x (c7297be)