【问题标题】:Perforce: Can I put a 'watch' on a file, so that I am notified when the file changes?Perforce:我可以在文件上放置“监视”,以便在文件更改时通知我吗?
【发布时间】:2012-05-25 08:04:39
【问题描述】:

我想在 Perforce 中对文件进行新更改时收到通知。

【问题讨论】:

    标签: version-control perforce


    【解决方案1】:

    如果您正在运行p4 review daemon,您只需将文件添加到您的 p4 用户的“评论”中。

    # 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:  you@yourcompany.com
    
    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
    

    【讨论】:

    • 根据链接和示例,此解决方案看起来正确。虽然,我没有使用它的特权。目前,我已关注代码协作者的偏好(因为我们使用此工具进行代码审查)。
    • 如果我实现了这个,我会收到什么样的通知?电子邮件通知?我已经实现了这一点,但没有看到任何形式的通知。
    • 它应该是一封电子邮件,确保 Perforce 管理员正确执行了链接中的步骤,并且它正在工作。
    • 考虑编辑您的答案以说明如何编辑您的 p4 用户信息。例如,从命令行运行p4 user
    【解决方案2】:

    主菜单 => 工具 => 管理 => 在用户组窗口中选择您的用户行 => 编辑 [如果选择了行,则选择的名称应该是一个选项] => 表单选项卡 => 将文件或分支添加到评论文本字段(使用仓库路径),确保您的电子邮件在电子邮件字段中正确

    根据 docs => “输入您想要查看的文件的仓库路径是否有任何更改。每当您在评论字段中订阅的任何文件被修改时,您都会收到一封电子邮件通知,提醒您。” 见:https://www.perforce.com/manuals/p4v/Content/P4V/configuring.user.html

    【讨论】:

      猜你喜欢
      • 2018-07-07
      • 1970-01-01
      • 2015-12-20
      • 2019-11-15
      • 2012-09-07
      • 1970-01-01
      • 1970-01-01
      • 2011-04-14
      • 2023-03-25
      相关资源
      最近更新 更多