Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: submit to p4 #2

Open
jthomaskerr opened this issue Apr 14, 2014 · 1 comment
Open

Feature request: submit to p4 #2

jthomaskerr opened this issue Apr 14, 2014 · 1 comment

Comments

@jthomaskerr
Copy link

What would be required to achieve this?

Is it possible to get a partial solution by adding the metadata that git-p4 uses so that if you sync using p4s you can subsequently submit to a single stream using git-p4? (NB I saw the readme comment about compatibility, but I'm curious if there is any way to get partial compatibility in order to use their submit functionality)

@lm1
Copy link
Owner

lm1 commented Apr 20, 2014

Currently the best way is to create a patch and apply it on P4 workspace followed by reconcile.

Submit is a feature I didn't account for in the time constrains I had. While it should not be particularly hard to implement there are nasty parts to consider. One needs to have a P4 workspace to operate in (unless there is a better way?). Perhaps it would be sufficient to create temporary workspace and only sync the files which actually need update and destroy it after use to make the process relatively lightweight.

Different medatada format was a design choice made in particular not to deal with interoperability issues since git-p4s is not feature compatibile with the original. The latter may mix several depot paths in a single git branch as it supports non-streamed depots and also uses different branch naming. These would make it troublesome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants