7 messages in com.perforce.perforce-user[p4] Need a diff trigger script (for ...| From | Sent On | Attachments |
|---|---|---|
| Cris Holdorph | 27 Sep 2004 11:36 | |
| Smith, Jeremy R (CACI) | 27 Sep 2004 12:00 | |
| Smith, Jeremy R (CACI) | 27 Sep 2004 12:30 | |
| Tetlow, Gordon | 27 Sep 2004 13:03 | |
| Cris Holdorph | 27 Sep 2004 13:11 | |
| Tetlow, Gordon | 27 Sep 2004 13:22 | |
| Smith, Jeremy R (CACI) | 27 Sep 2004 13:28 |
| Subject: | [p4] Need a diff trigger script (for 2003.1)![]() |
|---|---|
| From: | Smith, Jeremy R (CACI) (Jere...@med.va.gov) |
| Date: | 09/27/2004 12:00:41 PM |
| List: | com.perforce.perforce-user |
I have one in Perl, but it's poor and has some logic errors, so I'd rather not give it out (embarrassing). I'm converting it to a post-submit later.
In perl, I just do the following my $oldmanifest = `p4 print -q $manifest_file\@$prevchangeid`; my $newmanifest = `p4 print -q $manifest_file\@$changeid`;
And do the compare between those two.
What
-----Original Message----- From: perf...@perforce.com [mailto:perforce-user-admin at perforce.com] On Behalf Of Cris Holdorph Sent: Monday, September 27, 2004 12:37 PM To: perforce-user at perforce.com Subject: [p4] Need a diff trigger script (for 2003.1)
My company has not renewed maintenance, so I'm stuck using the 2003.1 version at the moment. This is really crucial because it means the "post submit" type script is not available to me. All I have is the one type of trigger script that existed back then.
What I need is a script that will get me the differences that are normally show when doing a "p4 describe" (without the -s). Currently if I do that command in my script, I do not get the file differences. I want to get all the differences and send them in an email.
I'm operating on a Solaris box, so any of the normal UNIX scripting language stuff is available, like Bash, SH, CSH, Perl. (python is not installed though, and I'd prefer to not have to install it for just this one script).
right now I have a script that does everything correctly, but provide me the actual diffs. So, if you only want to send a 'snippet' of code, that should be fine, because I already have the skeleton to put the snippet into.
Thanks in advance,
---- Cris J H
-- Cris J. Holdorph Unicon, Inc.
==== This message and any attachments are confidential. Unauthorized use or disclosure of this message is strictly prohibited, and this message must be destroyed immediately if received by an unauthorized recipient. ====
_______________________________________________ perforce-user mailing list - perforce-user at perforce.com http://maillist.perforce.com/mailman/listinfo/perforce-user




