Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

timestamp problem when checking out

I currently have a program which uses the scmtools CLI to connect with RTC. When I use load workapce to download the changed files it doesn't retain the lastMod date of the file.

Is there a way to get the last modified date of the file? the loadWorkspace command seems to work more like FTP than version control and change the timestamps!!


I did find that you can use certain commands to get the changesets (which returns a changeset ID and the lastMods name) but couldn't utilize this information to get the date!


regards,

0 votes



4 answers

Permanent link
See the thread titled "Files loaded from source control do not perservce
last m" for an explanation for why the modification date of files
in a file area are the date they were loaded into the file area.
Summary: Doing anything else will break date-based build systems like
all but the most sophisticated variants of Make.

Cheers,
Geoff

tehwabbit wrote:
I currently have a program which uses the scmtools CLI to connect with
RTC. When I use load workapce to download the changed files it doesn't
retain the lastMod date of the file.

Is there a way to get the last modified date of the file? the
loadWorkspace command seems to work more like FTP than version
control and change the timestamps!!


I did find that you can use certain commands to get the changesets
(which returns a changeset ID and the lastMods name) but couldn't
utilize this information to get the date!


regards,

0 votes


Permanent link
I understand that if the file is being downloaded for the first time, the local OS will class the file as new and alter the modification date.

Is there a way to query the repository like in CMVC? This way it might be possible to get the actual last modified (or commited) date of a file.

Once again this HAS to be via the CLI or something that can be called from outside the RTC GUI.

0 votes


Permanent link
I understand that if the file is being downloaded for the first time, the local OS will class the file as new and alter the modification date.

Is there a way to query the repository like in CMVC? This way it might be possible to get the actual last modified (or commited) date of a file.

Once again this HAS to be via the CLI or something that can be called from outside the RTC GUI.


RTC currently does not preserve the original modification timestamp of a file. They do have it logged as a future enhancement (potentially in 3.0)

https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/83718

Hope this helps,
Thaddee

0 votes


Permanent link
Hi all,
We are wondering if there is a way to avoid Jazz SCM detecting timestamp changes as a file change when, in fact, there is no change in the file contents.
Is there a solution for that situation in RTC 3.0?

Thanks!

Regards

Andrs

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Apr 14 '10, 5:39 a.m.

Question was seen: 7,349 times

Last updated: Apr 14 '10, 5:39 a.m.

Confirmation Cancel Confirm