Add better support for archiving repositories.

Review Request #6043 — Created July 1, 2014 and submitted

Information

Review Board
release-2.0.x
9b54c7d...

Reviewers

Archiving had issues before where an archived repository's path would
still conflict with a newly created repository. This confused a lot of
people using RBCommons, and required some manual work on our end to fix.

Now, we store a flag indicating that a repository is archived, and we
store the archived timestamp. The timestamp becomes part of the
unique_together for the path, preventing that from conflicting.

Unit tests pass.

Description From Last Updated

'time' imported but unused

reviewbotreviewbot
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/webapi/resources/repository.py
        reviewboard/scmtools/models.py
        reviewboard/scmtools/tests.py
        reviewboard/webapi/tests/test_repository.py
        reviewboard/scmtools/evolutions/repository_archive.py
        reviewboard/scmtools/evolutions/__init__.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/webapi/resources/repository.py
        reviewboard/scmtools/models.py
        reviewboard/scmtools/tests.py
        reviewboard/webapi/tests/test_repository.py
        reviewboard/scmtools/evolutions/repository_archive.py
        reviewboard/scmtools/evolutions/__init__.py
    
    
  2. Show all issues
     'time' imported but unused
    
  3. 
      
chipx86
chipx86
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/webapi/resources/repository.py
        reviewboard/scmtools/models.py
        reviewboard/scmtools/tests.py
        reviewboard/webapi/tests/test_repository.py
        reviewboard/scmtools/evolutions/repository_archive.py
        reviewboard/scmtools/evolutions/__init__.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/webapi/resources/repository.py
        reviewboard/scmtools/models.py
        reviewboard/scmtools/tests.py
        reviewboard/webapi/tests/test_repository.py
        reviewboard/scmtools/evolutions/repository_archive.py
        reviewboard/scmtools/evolutions/__init__.py
    
    
  2. 
      
david
  1. Ship It!

  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-2.0.x (d7ec780)
Loading...