Maybe the following does help? http://www.mail-archive.com/[EMAIL PROTECTED]/msg06933.html
Regards, Peter > -----Original Message----- > From: Hu Yong [mailto:[EMAIL PROTECTED] > Sent: Mittwoch, 11. August 2004 11:55 > To: Slide Users Mailing List > Subject: Re: a question about version-control (From HuYong) > > Jamie, > > I do as your suggestion, but more version will be generated still. > > Do I need call "LOCK" explicitly before calling "put" in my code? > > regards > huyong > ----- Original Message ----- > From: "Mortimore, Jamie [IT]" <[EMAIL PROTECTED]> > To: "Slide Users Mailing List" <[EMAIL PROTECTED]> > Sent: Wednesday, August 11, 2004 4:38 PM > Subject: RE: a question about version-control (From HuYong) > > > 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] > > > > > > --------------------------------------------------------------------- > 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]
