2 messages in com.perforce.perforce-userRe(2): Last-modified timestamp| From | Sent On | Attachments |
|---|---|---|
| Nick...@aperture.com | 17 Apr 1998 05:45 | |
| chri...@natinst.comchris.bartz | 17 Apr 1998 11:41 |
| Subject: | Re(2): Last-modified timestamp![]() |
|---|---|
| From: | chri...@natinst.comchris.bartz (chri...@natinst.comchris.bartz) |
| Date: | 04/17/1998 11:41:00 AM |
| List: | com.perforce.perforce-user |
The "modtime" option gives you the timestamp of when the file was submitted.
The
procedure I listed is the make Perforce think that I submitted the file at some
date/time that is different from when I really did it. I want to do this to
preserve
the timestamps on all the history I have from our current SCM system.
I think that the "p4 change -f" command to change the date/time is an acceptable
way
to get this. Unfortunately, there is a bug and that is why I have to do all the
rest
of the patching. I assume Perforce will fix this problem at some point and then
you
could skip checkpointing, patching, and recovering. I think the problem should
be
easy to fix since it only took me 30 minutes to figure out how to patch up their
database but I only reported it yesterday so I'd give them a little time to
handle
it.
The format of the checkpoint file is not documented and I assume it is not guaranteed, except maybe it is guaranteed to change :)
I would be very nervous about doing this sort of thing if it was something I was
going to have to maintain. However, it is a one time hit to get all my history
the
way I want it into Perforce so I am willing to do it.
- -Chris Bartz
nickp at aperture.com (Nick Pisarro) on 04/17/98 07:46:02 AM
To: perforce-user at perforce.com cc: (bcc: Chris Bartz/AUS/NIC) Subject: Re(2): Last-modified timestamp
chris.bartz at natinst.com,Internet writes:
So, my procedure to fix up the timestamps is:
- check the file in normally - do "p4 change -f" stuff to patch up the timestamp - checkpoint the database - fixup the timestamps in the checkpoint - recover from the fixed up checkpoint.
Ouch! Sounds like a kludge to make any software manager roll over in their grave! It is doing things like that which is why we have a Y2K problem. Is the format of the Checkpoint file documented & guaranteed by Perforce to be invarient? How about the Client option "modtime". Wouldn't that do it for you?




