2017-06-23 93 views
1

我是perforce新手。 Perforce怪異的行爲造成了相當多的麻煩。我原來的回購協議(即推送到遠程服務器一)具有如何保持perforce更改列表號碼一致

p4 changes 
Change 3 on 2017/06/23 by [email protected] 'add test-copy.go' 
Change 2 on 2017/06/23 by [email protected] 'add test.go' 
Change 1 on 2017/06/22 by [email protected] '"first sub repo" ' 

但我的克隆回購(新創建的文件夾內,從遠程服務器克隆)具有

p4 changes 
Change 6 on 2017/06/23 by [email protected] 'add test-copy.go' 
Change 5 on 2017/06/23 by [email protected] 'add test.go' 
Change 4 on 2017/06/22 by [email protected] '"first sub repo" ' 

沒有任何人有一個很好的想在資源操作檢出特定提交時解決此問題? 當我的同事創建一個我的repo的克隆時,我們引用與更改列表號相同的提交,而在git中,commit sha在服務器和不同的克隆之間是一致的。

回答

1

使用submit.identity配置上,將在服務器保留修改列表設置全局ID:

https://www.perforce.com/perforce/r15.2/manuals/dvcs/fetching.changelists.html#fetching.track_identity

+0

我將在我的本地服務器。 ''' 任何:P4LOG = p4_log.txt 任何:db.monitor.shared = 0 任何:dm.user.noautocreate = 1 任何:journalPrefix =備份/回 任何:顯示器= 3 任何:服務器= 0 任何:server.allowfetch = 3 任何:server.allowpush = 1 任何:server.allowrewrite = 1 任何:submit.identity = UUID ''' 但之後,我把它推到遠程服務器(Perforce的公共服務器),然後克隆它。克隆的更改列表與我的本地更改列表不一致。 例如。本地回購更改列表ID:1,2,3和克隆回購更改列表ID 4,5,6 – Junyu

+0

「標識」與更改列表編號不同。 –

相關問題