I use the following in my Domain.xml: <parameter name="auto-version">checkout-unlocked-checkin</parameter> <parameter name="auto-version-control">true</parameter>
This means if I lock a resource the resource will not be checked in until I unlock it. I usually do the following: LOCK, 200 "OK", 1654 ms, /files/newdir/WebDAVStoreTest-2.txt PUT, 204 "No Content", 5890 ms, /files/newdir/WebDAVStoreTest-2.txt PROPPATCH, 207 "Multi-Status", 1243 ms, /files/newdir/WebDAVStoreTest-2.txt UNLOCK, 204 "No Content", 2966 ms, /files/newdir/WebDAVStoreTest-2.txt This allows me to upload a resource and change some properties but only create 1 new version. If I don't lock the file then auto-version acts as per checkout-checkin. Jamie > -----Original Message----- > From: Hu Yong [mailto:[EMAIL PROTECTED] > Sent: 11 August 2004 08:59 > To: Slide Users Mailing List > Subject: Re: a question about version-control (From HuYong) > > > But if I set auto-version-control to false, can slide manage the file > version automatically? > > Is there API which is used to set the auto-version-control on > or false? > > ----- Original Message ----- > From: "Guido Casper" <[EMAIL PROTECTED]> > To: "Slide Users Mailing List" <[EMAIL PROTECTED]> > Sent: Wednesday, August 11, 2004 3:03 PM > Subject: Re: a question about version-control (From HuYong) > > > > Hu Yong wrote: > > > > > All, > > > > > > When I use WebDavResource.proppatchMethod() to set one > file's property, > a new version will be created in history. Coulde I do some > configure to > avoid the new version's auto generation? > > > > Yes, set auto-version-control to false. However this only > affects newly > > created resources. For existing resources (IIUC), you have > to proppatch > > the auto-version property. > > > > HTH > > Guido > > > > > > > > My auto-version-control is set true and auto-version is > checkout-checkin > > > > > > Looking forwards to the reply > > > > > > regards > > > huyong > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]