Estou apenas brincando em um banco de dados local do Perforce, tentando descobrir como posso redefinir o Perforce novamente para um estado anterior sem registrar no diário ou excluir e recriar os arquivos do banco de dados.
Eu tenho alguns depósitos sem arquivos, um deles é chamado de "sandbox". Eu criei com o comando p4 depot
a partir da linha de comando ou usando a API do P4Python (neste momento não lembro qual).
Quando eu digito:
p4 depot -d sandbox
eu recebo isso:
Depot sandbox isn't empty. To delete a depot, all file revisions must be removed and all lazy copy references from other depots must be severed. Use 'p4 obliterate' or 'p4 snap' to break file linkages from other depots, then clear this depot with 'p4 obliterate', then retry the deletion.
Eu tentei p4 obliterate -y //sandbox/...
, que diz apenas No records to delete.
, o que é esperado, pois o depósito está vazio. De qualquer forma, isso não altera o resultado de p4 depot -d
. Também não há conexões de outros depósitos, como a mensagem de erro sugere.
Alguma idéia do que está acontecendo e há uma maneira infalível de forçar um depósito a ser excluído sem excluir os arquivos do servidor? Por fim, quero fazer isso automaticamente no P4Python.
EDIT: FWIW, aqui está o log do servidor durante a operação obliterada:
2012/04/11 09:30:18 pid 6916 username@machinename 127.0.0.1 [p4/2011.1/NTX86
/370818] 'user-obliterate -y //sandbox/...'
--- lapse .561s
--- rpc msgs/size in+out 0+1/0mb+0mb himarks 64836/64836
--- db.counters
--- pages in+out+cached 2+0+1
--- locks read/write 0/1 rows get+pos+scan put+del 0+0+0 0+0
--- total lock wait+held read/write 0ms+0ms/0ms+436ms
--- db.user
--- pages in+out+cached 2+0+1
--- locks read/write 1/0 rows get+pos+scan put+del 1+0+0 0+0
--- db.group
--- pages in+out+cached 2+0+1
--- locks read/write 1/0 rows get+pos+scan put+del 0+1+1 0+0
--- db.domain
--- pages in+out+cached 3+0+1
--- locks read/write 2/0 rows get+pos+scan put+del 1+2+8 0+0
--- total lock wait+held read/write 0ms+436ms/0ms+0ms
--- max lock wait+held read/write 0ms+436ms/0ms+0ms
--- db.view
--- pages in+out+cached 3+0+1
--- locks read/write 2/0 rows get+pos+scan put+del 0+2+6 0+0
--- total lock wait+held read/write 0ms+436ms/0ms+0ms
--- max lock wait+held read/write 0ms+436ms/0ms+0ms
--- db.integed
--- pages in+out+cached 3+0+2
--- locks read/write 0/1 rows get+pos+scan put+del 0+1+1 0+0
--- total lock wait+held read/write 0ms+0ms/0ms+390ms
--- db.resolve
--- pages in+out+cached 2+0+1
--- locks read/write 0/1 rows get+pos+scan put+del 0+0+0 0+0
--- total lock wait+held read/write 0ms+0ms/0ms+343ms
--- db.have
--- pages in+out+cached 3+0+2
--- locks read/write 0/1 rows get+pos+scan put+del 0+1+1 0+0
--- total lock wait+held read/write 0ms+0ms/0ms+296ms
--- db.label
--- pages in+out+cached 2+0+1
--- locks read/write 0/1 rows get+pos+scan put+del 0+0+0 0+0
--- total lock wait+held read/write 0ms+0ms/0ms+249ms
--- db.locks
--- pages in+out+cached 3+0+2
--- locks read/write 0/1 rows get+pos+scan put+del 0+1+1 0+0
--- total lock wait+held read/write 0ms+0ms/0ms+171ms
--- db.archmap
--- pages in+out+cached 2+0+1
--- locks read/write 1/0 rows get+pos+scan put+del 0+1+1 0+0
--- db.rev
--- pages in+out+cached 4+0+2
--- locks read/write 1/1 rows get+pos+scan put+del 0+2+2 0+0
--- total lock wait+held read/write 0ms+16ms/0ms+171ms
--- db.revcx
--- pages in+out+cached 2+0+1
--- locks read/write 0/1 rows get+pos+scan put+del 0+0+0 0+0
--- total lock wait+held read/write 0ms+0ms/0ms+140ms
--- db.revdx
--- pages in+out+cached 2+0+1
--- locks read/write 0/1 rows get+pos+scan put+del 0+0+0 0+0
--- total lock wait+held read/write 0ms+0ms/0ms+93ms
--- db.revhx
--- pages in+out+cached 2+0+1
--- locks read/write 0/1 rows get+pos+scan put+del 0+0+0 0+0
--- total lock wait+held read/write 0ms+0ms/0ms+62ms
--- db.revsx
--- pages in+out+cached 2+0+1
--- locks read/write 0/1 rows get+pos+scan put+del 0+0+0 0+0
--- total lock wait+held read/write 0ms+0ms/0ms+46ms
--- db.working
--- pages in+out+cached 2+0+1
--- locks read/write 0/1 rows get+pos+scan put+del 0+0+0 0+0
--- total lock wait+held read/write 0ms+0ms/0ms+31ms
--- db.traits
--- pages in+out+cached 4+3+2
--- locks read/write 0/1 rows get+pos+scan put+del 0+0+0 0+0
--- total lock wait+held read/write 0ms+0ms/0ms+31ms
--- db.protect
--- pages in+out+cached 2+0+1
--- locks read/write 1/0 rows get+pos+scan put+del 0+1+1 0+0
Tags perforce