Asad Iqbal
Asad Iqbal

Reputation: 3321

Perforce: Can I put a 'watch' on a file, so that I am notified when the file changes?

I want to get notifications when new changes are made to a file in Perforce.

Upvotes: 11

Views: 8733

Answers (2)

jgritty
jgritty

Reputation: 11935

If you are running the p4 review daemon, one can run p4 user from the command-line and just add the file to your "reviews".

# A Perforce User Specification.
#
#  User:        The user's user name.
#  Email:       The user's email address; for email review.
#  Update:      The date this specification was last modified.
#  Access:      The date this user was last active.  Read only.
#  FullName:    The user's real name.
#  JobView:     Selects jobs for inclusion during changelist creation.
#  Password:    If set, user must have matching $P4PASSWD on client.
#  Reviews:     Listing of depot files to be reviewed by user.

User:   you

Email:  [email protected]

Update: 2012/05/01 11:08:18

Access: 2012/05/17 11:02:27

FullName:   Your Name

Password:   ******

Reviews:
    //depot/directory/...
    //depot2/dir2/file_to_review.cpp

Upvotes: 12

Greg
Greg

Reputation: 1067

main menu => tools => administration => select your user row in user group window => edit [selected name should be an option if row selected] => form tab => add file or branch to reviews text field (using depot path), make sure your email is correct in email field

According to docs => "Enter the depot path to the files that you want to watch for any changes. You will receive an email notification to alert you whenever any file you have subscribed to in the Reviews field has been modified." See: https://www.perforce.com/manuals/p4v/Content/P4V/configuring.user.html

Upvotes: 2

Related Questions