What is the best way to see what files are locked in Subversion?

后端 未结 4 563
终归单人心
终归单人心 2021-01-31 14:56

I finally got my group to switch from SourceSafe to Subversion. Unfortunately, my manager still wants to use exclusive locks on every single file. So I set the svn:needs-lock

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-31 15:57

    What you're looking for is the svnadmin lslocks command.

    I have this set up at work because we keep some Word documents in our Subversion repository (with svn:needs-lock). I have a cron job set up that every day, checks the list of locks and emails a report of all locks older than 7 days to the whole team. That way we can tell who has been slacking and sitting on a locked copy of a document for a long time.

提交回复
热议问题