Skip to content

Conversation

@hongshan
Copy link

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant