Amos Shapira schrieb:
On 20/06/07, *Dirk* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    I would like to add here, that you could get a better result if
    you use
    the following trick for the Archive/Restore cycle:

    * trun back the time on a local computer to a date prior to the first
    checkin in your database
    * create an empty database
    * set the time back to the real time.
    * now run the Import of your archive on this created database.

    The point is, that after the above steps you will have an archive,
    that
    has a creation date prior to your archived files. In the
    conversion step


Where is this creation date recorded? Is it just the file's attribute or is it contained inside the file's data? If inside the file's data - how difficult would it be to create a utility that can modify this information without having to change the system's clock? (if it's just the file's attribute then a simple call to utime(2) will do the trick).
It is recorded in the file. writing the utility to change the time is also easily possible. Most of it is in the ssphys code. Except that I havn't implemented writing to the data files. I only read and decode the files. If you change the creation timestamp, you need to recreate the checksum for the record also. But this is also easily possible.

But after I have introduced some more enhancements to the converter, I have another idea:

One could write a "PreConversion Hook" in the sence of MergeParentdata, RemoveTemporaryCheckIns, MergeUnpinPinData or BuildComments and check for these types of activities. With some tricks one could figure out the best timstamp and modify the conversion database. With these types of hooks you can do almost anything to the database, that can be changed without an in depth knowledge about the logical structure.

Dirk

_______________________________________________
vss2svn-users mailing list
Project homepage:
http://www.pumacode.org/projects/vss2svn/
Subscribe/Unsubscribe/Admin:
http://lists.pumacode.org/mailman/listinfo/vss2svn-users-lists.pumacode.org
Mailing list web interface (with searchable archives):
http://dir.gmane.org/gmane.comp.version-control.subversion.vss2svn.user

Reply via email to