How can Subversion do something similar to 'cvs watch'?

jwschaeff's picture
jwschaeff asked on February 12, 2011 - 6:46pm | Replies (2).

I'm sure I'd seen this before but can't identify it now.

2 Answers

jrep's picture
jrep replied on February 14, 2011 - 3:53pm.

The "cvs watch" command really accomplishes two things: it can be used to prevent others from changing a file, and/or it can be used to be notified if someone else changes a file.

The "svn lock" command accomplishes the first.

There is no standard solution to the second in core Subversion. Integrated CM systems (version control via Subversion, plus issue/change/ticket tracking in some other system) generally offer the equivalent, though perhaps under other names. For example, CollabNet TeamForge allows you to "monitor" (subscribe to) a mail list that receives mail when there are changes anywhere in a given repository.

Thomas Loy's picture
Thomas Loy replied on February 14, 2011 - 4:52pm.

There are other tools that will allow someone to monitor repositories. I'm using SVN Notifier ( to keep track of changes in my repositories, but I know there are lots of other tools that have similar monitor functionality. You can also add code to the server side post-commit hooks to send e-mail whenever a commit is completed to a repository.

CMCrossroads is a TechWell community.

Through conferences, training, consulting, and online resources, TechWell helps you develop and deliver great software every day.