Mark for add does not work to add new file in Eclipse with perforce plugin - p4eclipse

I use Eclipse with perforce plugin.
And currently in eclipse when I edit some files which I've already added to changelist, it is ok, I'm able to edit it in changelist.
But if I want to add new file to changelist using right click on file -> Mark for add. Nothing happenned and the file does not add to perforce.
How can I add newly added file to changelist via eclipse?

Related

Is there any way of deleting revisions for a particular file using TortoiseSVN?

I have a file in an svn repo committed that has some sensitive data
I dont want to revert any changes , I want to not show any revisions when a user goes to look at the Show Log in the repository.
How can I do this using TortoiseSVN? Does an option exist in the TortoiseSVN menu, or do I need to use the command line?

How to recover deleted changelist in Perforce

I use P4V. Once I changed logged user I saw only empty folder in one of workspaces and I couldn't load any content. So I marked this empty folder to delete - it made relevant changelist but didn't remove this folder from workspace. After some other tries I finally managed to connect with correct workspace. As the changelist has not been needed anymore I deleted it. Then I expanded the workspace content and what I saw was all files marked for delete. We tried to unmark them but we didn't manage to do so. So we marked all them once again to delete to create a changelist as we wanted then revert this hoping it will remove to-be-deleted marks. Suddenly P4V started removing all files from the project! Then I stopped the application and once run again I reverted this changelist. Ok, files have been restored BUT on all of them to-be-deleted mark from previous operation is still visible - even for other users in other locations. Does anyone know how to remove this mark?
Select the file, go to the "Files" pane on the right-hand side, and click the "Checked Out By" tab. This will show you what user and workspace has the file opened for delete, and in what changelist. You can go to that workspace and "revert" the file, or you can delete the workspace -- either way that workspace will no longer have the file open and the blue mark will go away.

Perforce reconcile command doesn't recognize files opened for edit that were deleted

Scenario:
I have a folder of files that are generated by an external tool that we check into Perforce for revision control, however we don't have knowledge ahead of time about when it's going to add/remove files from that structure.
So today our workflow is to checkout the entire directory, and then allow the tool to regenerate all of the files/hierarchy. When I run the reconcile command it successfully finds new files, but it fails to find files that were deleted.
Is there a better way to handle this?
Upgrade your Perforce server to 2014.2:
http://www.perforce.com/perforce/doc.current/user/relnotes.txt
Minor new functionality in 2014.2
#841159 **
'p4 reconcile' will now detect files that are open for edit but
missing from the client, and reopen them for delete.
A workaround is to do "p4 revert -k" prior to "p4 reconcile" so that it'll start over from scratch. The "-k" option tells revert to forget the files are open but NOT to actually undo the local changes.
A modified workflow that might make more sense if you're already using "p4 reconcile" religiously is to skip the "p4 edit" and use either the "allwrite" client spec option or the "+w" filetype modifier to make the files writable.

Perforce cmd line option to populate workspace

I am new to Perforce and have some experience using ClearCase earlier. I am using a Windows XP client and trying to set up my perforce client/workspace.
The Perforce view I have has mappings of type:
//depot/path/to/folder/... //my_workspace/depot/path/to/folder/...
However, I have not attempted the "Get latest revision" action (in p4v) for this workspace. That means, I don't have a local copy of the folder in question.
My question is: How do I populate the workspace with contents of the folder from the command line when the folder isn't present in the workspace ? The manual for p4 sync talks about getting a certain revision when the file is present in the workspace.
In terms of ClearCase, when the config spec for a snapshot view is having loadrules too, then cleartool can be told to pick the config spec from a text file and also load the contents of the view. I am trying to achieve a similar thing for Perforce.
Thanks in advance,
Parag Doke
Running the sync command will populate the workspace. If a file or folder isn't already present, it will be created during the sync operation.
With no additional flags specified, p4 sync will populate your workspace with the latest contents at the time the command is started.

Integrated files disappear from a pending changelist at p4v

Our user performed an integration between branches.
Integrated files were placed in a pending changelist but they are invisible when I look
at this changelist in p4v.
I can see them when I look on this changelist when I connected to another workspace, I can also see then in Eclipse.
When I choose to Resolve conflicts on this changelist it works too, but
when I try to submit the changes, there is nothing there.
After I installed a new version of p4v, the problematic pending
changelist appeared with a question mark (red triangle with a question
mark).
Any Ideas?
Thanks.
Answer from Perforce support:
This may be a working and locks out of sync
issue. Can you run the following server command:
p4d -r $P4ROOT -xf 925
Where "$P4ROOT" is the location of the db.* files.
P4V.exe allows the user to specify a filter on his workspace. Perhaps the workspace had a filter applied, such that the GUI did not show the files, where the command line client and others (ie Eclipse) would not be privy to this filter and would show the files.
Another possibility is that the user was logged in under a workspace other than his default, and the files were checked out in his default workspace. It would be easy to then find these files in his default by looking at pending changelists for all users.

Resources