When an admin clones a Perforce depot, or depot path, information about changelists and files that have been cloned is not immediately available, so the admin does not have an easy way to verify that the clone brought over everything expected, or is finished.
Some ways that the admin can currently verify:
connect to the gitserver terminal and run git commands in the clone directory, like git log | grep 'change = [0-9]' to show all changelists (p4-fusion and git p4 both add the changelist id to the commit message). The output of the git log can be dumped into a file for persistence and searching elsewhere.
search in the Sourcegraph UI using repo:<perforce cloned depot> type:commit message:"change = #####" where ##### is a changelist id. Or omit the message and see all commits. this is the UI version of using git log on gitserver.
in the gitserver terminal, use other git commands, like git ls-files and git log --name-only to see the files - pipe into wc to get a count of files.
I'm not sure what a desired interface looks like - maybe simply making the p4-fusion log output (should include changelist ids) available or parsed for easy reading. Perhaps just documentation, or a link in the code host to a type:commit search.
When an admin clones a Perforce depot, or depot path, information about changelists and files that have been cloned is not immediately available, so the admin does not have an easy way to verify that the clone brought over everything expected, or is finished.
Some ways that the admin can currently verify:
gitserver
terminal and rungit
commands in the clone directory, likegit log | grep 'change = [0-9]'
to show all changelists (p4-fusion
andgit p4
both add the changelist id to the commit message). The output of thegit log
can be dumped into a file for persistence and searching elsewhere.repo:<perforce cloned depot> type:commit message:"change = #####"
where#####
is a changelist id. Or omit the message and see all commits. this is the UI version of usinggit log
ongitserver
.gitserver
terminal, use othergit
commands, likegit ls-files
andgit log --name-only
to see the files - pipe intowc
to get a count of files.I'm not sure what a desired interface looks like - maybe simply making the
p4-fusion
log output (should include changelist ids) available or parsed for easy reading. Perhaps just documentation, or a link in the code host to atype:commit
search.