How to get perforce to pull only files that don't exist in workspace

Olaseni

How do you do some sort of download/resume with perforce?

I have a perforce repository with a large code base. While syncing there was a network error that caused the p4 client to break.

I want to start pulling only the files that don't already exist in work space> How do I accomplish that?

I have tried:

p4 sync -f //depot/BRANCH/... (copies all over from start)

p4 sync //depot/BRANCH/... (Says all files are synced), but I can see some files are missing in the workspace

jgritty
p4 diff -sd //Depot/BRANCH/... | p4 -x – sync -f

This will do what you need.

p4 diff -sd:

Show only the names of unopened files that are missing from the client workspace, but present in the depot.

Pipe that output to the force sync, to only force sync the missing files.

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

How to prevent files from being checked out to the default changelist in perforce?

来自分类Dev

Shell: how check if no .txt files exist in the directory?

来自分类Dev

TFS Workspace.Get方法

来自分类Dev

MVC3 Database entities don't get initialized as expected

来自分类Dev

Adding fields to Laravel 5 authentication don't get inserted into the database

来自分类Dev

How to upload only pdf files in PHP

来自分类Dev

How to restrict Shiny fileInput to text files only?

来自分类Dev

Gulp: how to watch multiple files and perform a task for only the changes files?

来自分类Dev

how to get a copy of exist git repository to new repository

来自分类Dev

How to configure "git pull --ff-only" and "git merge --no-ff"

来自分类Dev

How to do a fixed sprite (that don't move with my camera) in libgdx?

来自分类Dev

How to select all elements that don't have a class or id?

来自分类Dev

Why don't I get correct result when I use original parseList function in Kotlin?

来自分类Dev

Hibernate create, don't update, don't drop.

来自分类Dev

How to squash commits in a Pull request

来自分类Dev

Fortran 的 Makefile 给出了这个错误:make: don't know how to make datastructures.o

来自分类Dev

How can I *only* get the number of bytes available on a disk in bash?

来自分类Dev

How get only 5mers from a sequence

来自分类Dev

How get only 5mers from a sequence

来自分类Dev

How to get only value of sql query without header using groovy

来自分类Dev

How to get all the changed files in between two revisions in SVN?

来自分类Dev

How can i get the fileinfo of all files in a folder with GetFile()?

来自分类Dev

git pull --rebase --autostash和git pull --ff-only之间的区别?

来自分类Dev

如何获取git diff --name-only与git pull同步

来自分类Dev

Postgres. role "root" does not exist. When trying to pg:pull database from Heroku

来自分类Dev

How to git-add only non-whitespace changes and new files?

来自分类Dev

How to update the repository with unaccepted pull requests?

来自分类Dev

Mercurial : how to deal with rejected pull request?

来自分类Dev

Replace function of JavaScript don't work

Related 相关文章

  1. 1

    How to prevent files from being checked out to the default changelist in perforce?

  2. 2

    Shell: how check if no .txt files exist in the directory?

  3. 3

    TFS Workspace.Get方法

  4. 4

    MVC3 Database entities don't get initialized as expected

  5. 5

    Adding fields to Laravel 5 authentication don't get inserted into the database

  6. 6

    How to upload only pdf files in PHP

  7. 7

    How to restrict Shiny fileInput to text files only?

  8. 8

    Gulp: how to watch multiple files and perform a task for only the changes files?

  9. 9

    how to get a copy of exist git repository to new repository

  10. 10

    How to configure "git pull --ff-only" and "git merge --no-ff"

  11. 11

    How to do a fixed sprite (that don't move with my camera) in libgdx?

  12. 12

    How to select all elements that don't have a class or id?

  13. 13

    Why don't I get correct result when I use original parseList function in Kotlin?

  14. 14

    Hibernate create, don't update, don't drop.

  15. 15

    How to squash commits in a Pull request

  16. 16

    Fortran 的 Makefile 给出了这个错误:make: don't know how to make datastructures.o

  17. 17

    How can I *only* get the number of bytes available on a disk in bash?

  18. 18

    How get only 5mers from a sequence

  19. 19

    How get only 5mers from a sequence

  20. 20

    How to get only value of sql query without header using groovy

  21. 21

    How to get all the changed files in between two revisions in SVN?

  22. 22

    How can i get the fileinfo of all files in a folder with GetFile()?

  23. 23

    git pull --rebase --autostash和git pull --ff-only之间的区别?

  24. 24

    如何获取git diff --name-only与git pull同步

  25. 25

    Postgres. role "root" does not exist. When trying to pg:pull database from Heroku

  26. 26

    How to git-add only non-whitespace changes and new files?

  27. 27

    How to update the repository with unaccepted pull requests?

  28. 28

    Mercurial : how to deal with rejected pull request?

  29. 29

    Replace function of JavaScript don't work

热门标签

归档