[p4] Diff for specific changeset?
Chuck Karish
chuck.karish at gmail.com
Mon Oct 8 17:17:57 PDT 2007
> > this (or something like it) should do what you want on UNIX derived systems:
> >
> > p4 opened -c default | grep ' - edit default change ' | sed -e
> > 's/#.*$//' | p4 -x - diff
>
> Yuck. Nothing against your shell scripting, but p4 should make this
> common task simpler than the above.
Following Tony's example, this does what Roy first requested:
p4 describe $CHANGE | sed -n 's/^\.\.\. \(.*\) [a-z]*/\1/p' | p4 -x - diff
> Why can't "p4 describe" show the diffs of pending changlists when
> running on the machine where the changes exist?
It could. Perforce would have to add the capability.
--
Chuck Karish karish at well.com (415) 317-0182
More information about the perforce-user
mailing list