Pergunta

In Perforce, I have created a change list that has over 200,000 files (by doing a rename on a directory). This change list is now too big to submit or revert. When I try, I get an error saying that the operation took too long.

I am now stuck with this change list that has my original directory in marked for delete state and a new directory that hasn't been submitted. Is there a way undo this change list?

Foi útil?

Solução

You can revert the files a few at a time. As a test, you could run p4 revert //path/to/some/file and verify that it's able to revert that file.

Once you know that's working, you just need a way to automate the process.

You could script something up that starts in the root directory and runs through all directories breadth-first, running p4 revert //path/to/folder/* at each folder (I think you could also use client paths).

Outras dicas

You can revert via the command line using the p4 tool. I do not think you can revert the files from the UI. The associated documentation shows various examples of how revert all or specific files (see the Examples section):

http://www.perforce.com/perforce/r12.1/manuals/cmdref/revert.html

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top