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: | Cris Holdorph (hold...@unicon.net) |
| Date: | 09/27/2004 01:11:32 PM |
| List: | com.perforce.perforce-user |
I don't think that's true. I thought, for example, that you could parse the input files and, for example, check for no tabs and if tabs existed, fail the submit. To be able to make that kind of trigger, you'd have to have the filecontents. I thought for sure that was possible even in version 2003.1
---- Cris J H
On Mon, Sep 27, 2004 at 01:04:05PM -0700, Tetlow, Gordon wrote:
It's impossible to do a diff in a pre-submit trigger because the server hasn't received the files yet. If you are looking to do something like an email, you should be running some sort of post-processing daemon that grabs that information.
-gordon
-----Original Message----- From: perforce-user-admin at perforce.com [mailto:perforce-user-admin at perforce.com] On Behalf Of Cris Holdorph Sent: Monday, September 27, 2004 11:37 AM 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
_______________________________________________ perforce-user mailing list - perforce-user at perforce.com http://maillist.perforce.com/mailman/listinfo/perforce-user
==== 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. ====




