cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Is there a CLI to find out checkins based on date ?

hmagnanao
1-Newbie

Is there a CLI to find out checkins based on date ?

CLI for checkins

7 REPLIES 7

si rlog -R --rfilter=daterange:"01.12.2014 00:00:00"-"31.12.2014 00:00:00" --fields=membername,revision,date --noHeaderFormat --noTrailerFormat

Note that the date format here is german and it may be different for your locale.

Also if the "Save Working File Timestamp" option was set on check in the result may not reflect the

check in date.

BTW:

I would find it nice if the "Filter Revision" dialog from the gui

would have some CLI command builder functionality and

support the user for generating si rlog commands resp. options.

HTH Jürgen

KaelLizak
14-Alexandrite
(To:kthierer)

Hello Hector Magnanao‌,

I'd like to emphasize Klaus Thierer‌'s point about the Save Working File Timestamp option:  If that was used, that time will be used instead of the default of the time the operation actually occurred.

Hello Klaus Thierer‌,

That sounds like an excellent Idea, and probably worth posting as one!

Kind Regards to You Both!

-Kael


Kind Regards,
Kael Lizak

Senior Technical Support Engineer
PTC Integrity Lifecycle Manager

Hi Klaus,

I have a question regarding this command that you suggested for me.

si rlog -R --rfilter=daterange:"01.12.2014 00:00:00"-"31.12.2014 00:00:00" --fields=membername,revision,date --noHeaderFormat --noTrailerFormat

This commands works for me and I was wondering if this command will display all types of changes done to the development path.  I mean does it display 'new files added', 'files deleted', 'files renamed', etc...

I would say here that only actions that created new revisions will be reflected and only current members.

(for this example also all development paths will be reflected)

If you change a member name a new revision is generated with an auto comment

"Member renamed from ..."

Unfortunately deleted files or more precisely dropped members can not be catched by this mechanism.

You would have to find further information e.g. based on checkpoints or change packages.

You could try to point si rlog to a specic project revision with --project and --projectrevision then also dropped

members can be reflected but not the members which were added.

BTW:

IMO a decent checkpointing policy is essential when working with Configuration Management only.

For complete tracebilty between checkpoints I can see only change packages having the potential

to close the gap without more or less complex server configuration.

I personally would wish there would be a build in (default) mechanism dor every subproject

which keeps track of all changes to its childs (including set member revision, dropping, labeling?, ...)

since the last checkpoint.

Regards Jürgen

Thanks for your reply Jurgen.  So I guess I need to find that CLI that will produce all closed change packages with a date range ?  And then I would have to check each action in that change packages to see if it's an add, delete, rename, etc ?

Please advise.

From what understood from SourceCLIReference_Integrity_10_4.pdf until now,

I assume that you will have to parse/filter yourself a lot

and the best you can do is trying to produce parseable output.

For a single change package my approach would be

si viewcp --noheaderformat --notrailerformat --fields=timestamp,type,member,revision,project 123:1 > tab_separated_cp_entries.txt

tab_separated_cp_entries.txt should be importable with excel wizard, at least if you specify all columns beeing text.

Unfortunately the timestamp field has not a format that you can easily sort in a suitable order.

For closed change packages I would say those having a creation date withing your range are also of interest.

BTW:

Why do you think only closed change packages are of interest?

I'm looking for closed change packages because they are the ones with the checked in files.

Top Tags