It is not easy to use "auto checkout on save"#43
Open
hongshan wants to merge 3 commits intoericmartel:masterfrom
Open
It is not easy to use "auto checkout on save"#43hongshan wants to merge 3 commits intoericmartel:masterfrom
hongshan wants to merge 3 commits intoericmartel:masterfrom
Conversation
Always say "File is already writable" even the file is not checkouted.
Miss part of full path. For example workspace root "d:/wkspace", and workspace name is "work_space_name" , and the project in d:/wkspace/project/file/hello.py, and the map in workspace in p4 is" //project/... //work_space_name/project/... " Then input command "List Checkout Files" in sublime then get path like that "d:/wkspace/file/hello.py" with out string "project".
I found view.is_dirty() often return true, actually it does not care about if it is dirty I just want checkout when save, even if this file is writable or has been checkout, just checkout again when save.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In most satuation I want to checkout some file on save, it always prompts "Overwrite write-protected file" cause the file is read-only before checkout. If I choose "Overwirte" then the file will be writable but our plugin will not checkout this file I got a warning "the file is already writable". So I thought "auto checkout on save" actually doesn't work.
I remove the code that check the file is writable and it will be checkout everytime I saving the file. Anyway for now it works well for me.
I do the same thing in the sublime text 3.