获取perforce客户端最后一次sync的changelist, 前提是中间没有任何代码提交:

http://stackoverflow.com/questions/47007/determining-the-last-changelist-synced-to-in-perforce

 

试了一下,相对路径没有输出. 绝对路径可以.比如:

p4 changes -m1 //depot/game_code/library/...#have

>> Change 333 on 2013/11/12 by johndoe@anycom ' comments '

 

只要//depot/game_code/library/...下在最后一次sync后没有任何提交, 那么就可以得到最后一次sync的Changelist.

如果中间有提交, 那么输出结果可能是最后一次提交的Changelist

相关文章:

  • 2021-07-07
  • 2021-05-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-24
  • 2021-07-15
猜你喜欢
  • 2022-12-23
  • 2021-06-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-10
  • 2021-10-19
相关资源
相似解决方案