• :) 理解 LZ 意思,我也不知道怎么看诶,等待高手

  • 新手问题 at 2010年05月27日

    :lol 快来人啊,科普信任啦~~~

  • 有关导出 changelist at 2010年05月24日

    :loveliness: 写了个小小的脚本,勉强能用啦。哈哈。。。 #This is a script for export the changelist import os #The prefer version's number start =int(raw_input("Please enter the perfer version's number: ")) #The next verson's number stop =int(raw_input("Please enter the next version's number: "))
    #P4 login os.system('p4 login')

    #Enter the Keyword keyword = raw_input("Please Enter your keyword: ") f = open('release.txt', 'a') while(start <= stop): session = os.popen('p4 describe -s %s' % start) #List every change's details x = session.read() if keyword in x: f.write(x) start = start + 1 session.close()

  • 有关导出 changelist at 2010年05月18日

    :) 嗯嗯,谢谢指导~~

    我觉得我这个东东要写脚本的吧~~

    我回去写写看,如果写得出来的话,呵呵~~~

  • 有关导出 changelist at 2010年05月15日

    :) 不知道这次说清楚了没。。。

  • 有关导出 changelist at 2010年05月15日

    我用的命令是 p4 changes -i //InsectsWaken/... 就是希望导出 InsectsWaken 这个文件夹的所有 changelist

    现在的问题是,我发现 p4 changes -i //InsectsWaken/...导出的内容的前面部分和我 p4 changes -i //Loong/...导出的内容的前面部分是一样的,好奇怪,应该不一样的才对

    还有,我用命令导出的 changelist 描述不完整啊~~~,是不是要指定什么参数,才能让导出来的 changelist 完整呢?

    因为条件原因哈,我远程登录公司的,截图比较小。。

    [b][color=darkred] 如果太小看不清的话,我下回回公司再截图吧。。。。 [/b]:(

  • 有关导出 changelist at 2010年05月15日

    论坛里的有个团 changelist 的帖子都看过啦。。。

    不过没有我要找的

    呵呵,下回我把问题写详细点哈

  • Perforce c++ API 安装 at 2010年05月12日

    [color=Red][b] 运行 python p4test.py 出来这么一堆 ERROR 啊~~~[/b] [color=Red][b] 这样子可以的嘛?[/b]

    [root@p4Server P4Python-2009.2]# python p4test.py testClient (main.TestP4) ... ERROR testEnvironment (main.TestP4) ... ok testExceptions (main.TestP4) ... ok testFiles (main.TestP4) ... ERROR testInfo (main.TestP4) ... ERROR testMap (main.TestP4) ... ok testPasswords (main.TestP4) ... ERROR testResolve (main.TestP4) ... ERROR testThreads (main.TestP4) ... Exception in thread Thread-1: Traceback (most recent call last): File "/home/p4python/Python-2.5.2/Lib/threading.py", line 486, in bootstrap_inner self.run() File "p4test.py", line 363, in run info = self.p4.run_info() File "build/lib.linux-i686-2.5/P4.py", line 248, in return lambda *args: self.run(cmd, *args) File "build/lib.linux-i686-2.5/P4.py", line 285, in run return P4API.P4Adapter.run(self, *self.flatten(args)) P4Exception: [P4#run] Errors during command execution( "p4 info" )

    [Error]: TCP send failed. write: socket: Broken pipe

    Exception in thread Thread-3: Traceback (most recent call last): File "/home/p4python/Python-2.5.2/Lib/threading.py", line 486, in bootstrap_inner self.run() File "p4test.py", line 363, in run info = self.p4.run_info() File "build/lib.linux-i686-2.5/P4.py", line 248, in return lambda *args: self.run(cmd, *args) File "build/lib.linux-i686-2.5/P4.py", line 285, in run return P4API.P4Adapter.run(self, *self.flatten(args)) P4Exception: [P4#run] Errors during command execution( "p4 info" )

    [Error]: TCP send failed. write: socket: Broken pipe

    Exception in thread Thread-8: Traceback (most recent call last): File "/home/p4python/Python-2.5.2/Lib/threading.py", line 486, in bootstrap_inner self.run() File "p4test.py", line 363, in run info = self.p4.run_info() File "build/lib.linux-i686-2.5/P4.py", line 248, in return lambda *args: self.run(cmd, *args) File "build/lib.linux-i686-2.5/P4.py", line 285, in run return P4API.P4Adapter.run(self, *self.flatten(args)) P4Exception: [P4#run] Errors during command execution( "p4 info" )

    [Error]: TCP send failed. write: socket: Broken pipe

    Exception in thread Thread-5: Traceback (most recent call last): File "/home/p4python/Python-2.5.2/Lib/threading.py", line 486, in bootstrap_inner self.run() File "p4test.py", line 363, in run info = self.p4.run_info() File "build/lib.linux-i686-2.5/P4.py", line 248, in return lambda *args: self.run(cmd, *args) File "build/lib.linux-i686-2.5/P4.py", line 285, in run return P4API.P4Adapter.run(self, *self.flatten(args)) P4Exception: [P4#run] Errors during command execution( "p4 info" )

    [Error]: TCP send failed. write: socket: Broken pipe

    Exception in thread Thread-9: Traceback (most recent call last): File "/home/p4python/Python-2.5.2/Lib/threading.py", line 486, in bootstrap_inner self.run() File "p4test.py", line 363, in run info = self.p4.run_info() File "build/lib.linux-i686-2.5/P4.py", line 248, in return lambda *args: self.run(cmd, *args) File "build/lib.linux-i686-2.5/P4.py", line 285, in run return P4API.P4Adapter.run(self, *self.flatten(args)) P4Exception: [P4#run] Errors during command execution( "p4 info" )

    [Error]: TCP send failed. write: socket: Broken pipe

    Exception in thread Thread-4: Traceback (most recent call last): File "/home/p4python/Python-2.5.2/Lib/threading.py", line 486, in bootstrap_inner self.run() File "p4test.py", line 363, in run info = self.p4.run_info() File "build/lib.linux-i686-2.5/P4.py", line 248, in return lambda *args: self.run(cmd, *args) File "build/lib.linux-i686-2.5/P4.py", line 285, in run return P4API.P4Adapter.run(self, *self.flatten(args)) P4Exception: [P4#run] Errors during command execution( "p4 info" )

    [Error]: TCP send failed. write: socket: Broken pipe

    Exception in thread Thread-6: Traceback (most recent call last): File "/home/p4python/Python-2.5.2/Lib/threading.py", line 486, in bootstrap_inner self.run() File "p4test.py", line 363, in run info = self.p4.run_info() File "build/lib.linux-i686-2.5/P4.py", line 248, in return lambda *args: self.run(cmd, *args) File "build/lib.linux-i686-2.5/P4.py", line 285, in run return P4API.P4Adapter.run(self, *self.flatten(args)) P4Exception: [P4#run] Errors during command execution( "p4 info" )

    [Error]: TCP send failed. write: socket: Broken pipe

    Exception in thread Thread-2: Traceback (most recent call last): File "/home/p4python/Python-2.5.2/Lib/threading.py", line 486, in bootstrap_inner self.run() File "p4test.py", line 363, in run info = self.p4.run_info() File "build/lib.linux-i686-2.5/P4.py", line 248, in return lambda *args: self.run(cmd, *args) File "build/lib.linux-i686-2.5/P4.py", line 285, in run return P4API.P4Adapter.run(self, *self.flatten(args)) P4Exception: [P4#run] Errors during command execution( "p4 info" )

    [Error]: TCP send failed. write: socket: Broken pipe

    Exception in thread Thread-7: Traceback (most recent call last): File "/home/p4python/Python-2.5.2/Lib/threading.py", line 486, in bootstrap_inner self.run() File "p4test.py", line 363, in run info = self.p4.run_info() File "build/lib.linux-i686-2.5/P4.py", line 248, in return lambda *args: self.run(cmd, *args) File "build/lib.linux-i686-2.5/P4.py", line 285, in run return P4API.P4Adapter.run(self, *self.flatten(args)) P4Exception: [P4#run] Errors during command execution( "p4 info" )

    [Error]: TCP send failed. write: socket: Broken pipe

    ok

    ======================================================================

    ERROR: testClient (main.TestP4)

    Traceback (most recent call last): File "p4test.py", line 94, in testClient client = self.p4.fetch_client() File "build/lib.linux-i686-2.5/P4.py", line 254, in return lambda *args: self.run(cmd, "-o", *args)[0] File "build/lib.linux-i686-2.5/P4.py", line 285, in run return P4API.P4Adapter.run(self, *self.__flatten(args)) P4Exception: [P4#run] Errors during command execution( "p4 client -o" )

    [Error]: TCP send failed. write: socket: Broken pipe

    ======================================================================

    ERROR: testFiles (main.TestP4)

    Traceback (most recent call last): File "p4test.py", line 117, in testFiles self.setClient() File "p4test.py", line 237, in _setClient client = self.p4.fetch_client() File "build/lib.linux-i686-2.5/P4.py", line 254, in return lambda *args: self.run(cmd, "-o", *args)[0] File "build/lib.linux-i686-2.5/P4.py", line 285, in run return P4API.P4Adapter.run(self, *self._flatten(args)) P4Exception: [P4#run] Errors during command execution( "p4 client -o" )

    [Error]: TCP send failed. write: socket: Broken pipe

    ======================================================================

    ERROR: testInfo (main.TestP4)

    Traceback (most recent call last): File "p4test.py", line 54, in testInfo info = self.p4.run_info() File "build/lib.linux-i686-2.5/P4.py", line 248, in return lambda *args: self.run(cmd, *args) File "build/lib.linux-i686-2.5/P4.py", line 285, in run return P4API.P4Adapter.run(self, *self.__flatten(args)) P4Exception: [P4#run] Errors during command execution( "p4 info" )

    [Error]: TCP send failed. write: socket: Broken pipe

    ======================================================================

    ERROR: testPasswords (main.TestP4)

    Traceback (most recent call last): File "p4test.py", line 200, in testPasswords client = self.p4.fetch_client() File "build/lib.linux-i686-2.5/P4.py", line 254, in return lambda *args: self.run(cmd, "-o", *args)[0] File "build/lib.linux-i686-2.5/P4.py", line 285, in run return P4API.P4Adapter.run(self, *self.__flatten(args)) P4Exception: [P4#run] Errors during command execution( "p4 client -o" )

    [Error]: TCP send failed. write: socket: Broken pipe

    ======================================================================

    ERROR: testResolve (main.TestP4)

    Traceback (most recent call last): File "p4test.py", line 256, in testResolve self.setClient() File "p4test.py", line 237, in _setClient client = self.p4.fetch_client() File "build/lib.linux-i686-2.5/P4.py", line 254, in return lambda *args: self.run(cmd, "-o", *args)[0] File "build/lib.linux-i686-2.5/P4.py", line 285, in run return P4API.P4Adapter.run(self, *self._flatten(args)) P4Exception: [P4#run] Errors during command execution( "p4 client -o" )

    [Error]: TCP send failed. write: socket: Broken pipe


    Ran 9 tests in 9.023s

    FAILED (errors=5) [root@p4Server P4Python-2009.2]# p4 info User name: avn Client name: p4Server Client host: p4Server Client unknown. Current directory: /home/p4python/P4Python-2009.2 Client address: 192.168.9.228:50243 Server address: 192.168.9.228:1666 Server root: /home/AvnP4Svr/Perforce Server date: 2010/05/12 20:20:04 +0800 CST Server version: P4D/LINUX26X86/2007.3/152469 (2008/04/24) Server license: avn 99999999 clients 99999999 users (support ends 2038/01/19) (expires 2038/01/19) [root@p4Server P4Python-2009.2]# p4 set P4PASSWD=santeraone P4PORT=192.168.9.228:1666 P4USER=avn

  • Perforce c++ API 安装 at 2010年05月12日

    :Q 我装错服务器啦............... 等我安装到另外的服务器,再通知大家好消息啊~~~如果安装不出错的话.....:loveliness:

  • Perforce Python API at 2010年05月12日

    嗯嗯~!!! 一定要顶这个帖子滴!!!!

  • Perforce c++ API 安装 at 2010年05月12日

    :L 我又弱智的在想怎么加环境变量...大家鄙视我

  • Perforce c++ API 安装 at 2010年05月12日

    这个不是 log 啦,是安装包解压出来的一个 relaeasenote 的东东 里面有提到这句话... Building P4Python from Source

    1. Download the appropriate Perforce C++ API build from the Perforce FTP site at "ftp.perforce.com/perforce". OS X users must get the universal binary version of the API in the "bin.darwin*u" directory. Windows users must get "p4api_vs2008_static.zip" in the "bin.ntx86" directory.

    Unzip the archive into an empty directory.

    2. Extract the P4Python API archive into a new, empty directory.

    3. Build P4Python with the following command:

    python setup.py build --apidir

    For a clean installation, remove the directory named "build" and its contents. To verify that the build succeeded, run the test script:

    python p4test.py

    The Perforce server executable "p4d" must be in the PATH.

    4. To install P4Python, run the following command. On UNIX systems, this step must be run as root:

    python setup.py install --apidir

    Ensure that the umask is set correctly (typically 0022) before running the install. With a umask of 027, for example, the resulting installed files are accessible only by users of group root.

  • Perforce c++ API 安装 at 2010年05月12日

    The Perforce server executable "p4d" must be in the PATH. 应该是找不到 p4d 吧~~

    直接把 p4d 加到环境变量里么~

  • Perforce c++ API 安装 at 2010年05月11日

    :L python p4test.py 之后一遛的 error。。。。。我也不清楚~~~对不对不?

  • Perforce c++ API 安装 at 2010年05月11日

    我的神仙老大老大!!!你看看我这里是不是这样子的。。。激动啦~~~~哈哈

  • Perforce c++ API 安装 at 2010年05月11日

    修改了 setup.cfg 的文件之后 直接 build 的意思是 python setup.py build 吗? :( 我是新手,这个问题是不是弱智了点 然后我这里就出现这个了。。 [root@video230 P4Python-2009.2]# python setup.py build API Release 2009.2 running build running build_py creating build creating build/lib.linux-i686-2.5 copying P4.py -> build/lib.linux-i686-2.5 running build_ext error: invalid Python installation: unable to open /home/yanql/python2.5/lib/python2.5/config/Makefile (No such file or directory)

  • Perforce c++ API 安装 at 2010年05月11日

    我感觉安装 python 是没什么问题啦 安装 P4Python 的命令就是 python setup.py build --apidir 现在是这条命令总是出错。。。然后我才胡乱改了各种各样的命令出来,才出现了上面的报错结果。

  • Perforce c++ API 安装 at 2010年05月11日

    各种各样的都试过了。。。。。就这样。。

  • Perforce c++ API 安装 at 2010年05月08日

    图 1 图 2 图 3

  • Perforce c++ API 安装 at 2010年05月08日

    :Q :Q :Q

    跟 setup.cfg 的设置有关系么 我把 setup.cfg 里路径设置成 p4api,就是那个 c++ 的路径啦

  • Perforce c++ API 安装 at 2010年05月08日

    -bash:Syntax error near unexpected token 'newline'

    有时候又报错说找不到 python 中的 makefile 文件

    为什么啊

  • Perforce c++ API 安装 at 2010年05月08日

    不是 install,是在 build 的时候就出错了 python setup.py build --apidir

  • Perforce c++ API 安装 at 2010年05月08日

    我是在 linux 下安装的啊~~ 就是把 C++ API 的安装包解压出来了 然后运行 python setup.py install --apidir 这个命令 输入 c++ API 的解压出来的绝对路径,报错啦

  • p4 system administrator guide-1 at 2010年04月21日

    -____-||| 能力有限,翻译得很吃力

    license 和 版本信息

    认证信息被存放在服务器根目录下的一个名为 license 的文件中。license 文件是由 perforce software 提供的一个空白的 text 文件。没有这个 license 文件,perforce 服务器就只能限制被两个用户使用,并且只能创建 5 个客户工作区。

    你可以直接更新这个已存在的文件,不用使用 P4 license 命令来停止 perforce 服务器。

    如何查看现在的 license 信息呢,可以在存放 license 文件的根目录下使用 p3d -v 命令,或者通过命令行(p4d -v -r server_root)来指定服务器根目录或者在 p4root 环境变量中指定根目录。

    如果服务器正在运行,你也可以使用 p4 info 来查看你的认证信息。

    在命令行中输入 p4d -v 或者 p4 -v 可以查看版本信息

    遵守合适的备份流程 定期的备份 perforce 数据是非常重要的。关键概念如下: 确保日志是激活状态 定期创建 checkpoint 定期使用 p4 verify 命令

  • p4 system administrator guide-1 at 2010年04月21日

    -____-||| 能力有限,翻译得很吃力

    license 和 版本信息

    认证信息被存放在服务器根目录下的一个名为 license 的文件中。license 文件是由 perforce software 提供的一个空白的 text 文件。没有这个 license 文件,perforce 服务器就只能限制被两个用户使用,并且只能创建 5 个客户工作区。

    你可以直接更新这个已存在的文件,不用使用 P4 license 命令来停止 perforce 服务器。

    如何查看现在的 license 信息呢,可以在存放 license 文件的根目录下使用 p3d -v 命令,或者通过命令行(p4d -v -r server_root)来指定服务器根目录或者在 p4root 环境变量中指定根目录。

    如果服务器正在运行,你也可以使用 p4 info 来查看你的认证信息。

    在命令行中输入 p4d -v 或者 p4 -v 可以查看版本信息