On Wed, Sep 06, 2006 at 01:50:06PM -0700, Dan Price wrote: > - Would it be possible to autodetect that one is using SVN? > One of the changes I am making to webrev is to try to > have it "just do the right thing" if you just invoke it > as 'webrev'-- my hope is that it could be a tool of interested > to broader users of SVN, Hg, etc. if it "just worked"
You can run "svn info" and check the exit code. If you want something lighter-weight (but likely a private interface), every directory in a checked-out subversion tree has a .svn directory, and "svn info" appears to look at "format" and "entries" in it. > - Would it make sense to have a 'mode' flag instead of say, > -S? For example, we could -m tw, -m svn, -m hg as an > extensible way of supporting multiple SCM types. (One of my > changes is to have webrev use getopts(1)) If you can autodetect, is there any reason to have this? Danek _______________________________________________ tools-discuss mailing list [email protected]
