veverka.euKompletní odstranění souboru ze Subversion repozitáře

To remove a file or folder and all history from an SVN repository, create a dump of the existing repository and filter out the unwanted file or folder. Then create a new repository to replace the existing repository.

The process to completely remove a file or folder from a repository involves several steps. Use the following steps to completely remove and existing file or folder and all history from your current live repository:

  1. Create a dump of the existing repository:
    # svnadmin dump [path_to_repo] > dumpfile
     
  2. Filter out the unwanted file/folder:
    # svndumpfilter exclude [path_to_file/folder] < dumpfile > filtered_dumpfile
     
  3. Create a new repository, to swap for the live repository:
    # svnadmin create repo_temp
     
  4. Load the filtered dumpfile to new repository:
    # svnadmin load repo_temp < filtered_dumpfile
     
  5. Verify the new repository and replace the live repo with the new repository:
    # rm [path_to_live_repo] -rf
    # mv repo_temp live_repo

Source: help.collab.net

HomepageKontaktMapa stránek