How to fix "unable to create pristine install stream"

Viewed 21894

Since about one or two weeks I get this error message and I don't know how to resolve it.

Commit failed (details follow):

Unable to create pristine install stream

The system cannot find the path specified.

SVN screenshot

I neither know what a Pristine Install Stream is, nor does the message contain a hint about the path that is not found.

I've tried a cleanup, but the same error still occurs.

I googled, but at the time of writing there are only 9 results available, some of them commit history of SVN changes, others unanswered question.

3 Answers

On my system, the tmp folder was in the .svn directory. So I did rm -rf tmp in the .svn directory. Then mkdir tmp in the .svn directory and it fixed the problem.

Create missing ...\.svn\tmp directories recursive in the given $path with the following PowerShell script. If your directories are not hidden (usually they are), remove the -Hidden flag.

function CreateTmpDirInSvnRepos($path) 
{ 
Get-ChildItem -Path $path -Recurse -Directory -Hidden | 
  Where-Object { $_.BaseName -match '.svn' } | 
    ForEach-Object { Join-Path -Path $_.FullName -ChildPath 'tmp' } |
      ForEach-Object { if (!(Test-Path $_)) { New-Item $_ -ItemType 'Directory' } }
}

CreateTmpDirInSvnRepos "C:\SVN"

My backup program ignored tmp folders, which is a common behavior I'd say.
From my point of view SVN could fix it. If the directory doesn't exist create it.
From SVN's point of view the statement would be "Don't touch my hidden files".
Both points of view comprehensive.
I think if SVN team would know about the issue they would create the tmp directory if missing. I'll put a request for them to do so.

[EDIT] Just created the issue in apache SVN: https://issues.apache.org/jira/browse/SVN-4868

Related