How to delete a workspace in Perforce (using p4v)?

前端 未结 5 1836
感动是毒
感动是毒 2021-01-30 12:05

I\'m new to Perforce and have created a few workspaces as exercises for getting familiar with it. Now I would like to delete some of the workspaces. I just want to get rid of th

5条回答
  •  盖世英雄少女心
    2021-01-30 12:49

    It could also be done without a visual client with the following small script.

    $ cat ~/bin/pdel
    
    #!/bin/sh
    
    #Todo: add error handling
    
    ( p4 -c $1 client -o | perl -pne 's/\blocked\s//' | p4 -c $1  client -i ) && p4 client -d $1
    

提交回复
热议问题