Updated PDF files don't get checked in.
Moderator: SourceGear
-
- Posts: 2
- Joined: Fri Jul 11, 2008 3:27 pm
Updated PDF files don't get checked in.
I have an issue. I'm using VS2008 and we have several PDF files in our projects. If we add a PDF file to the project, it initially works just fine. However, if we later update that PDF (outside of VS2008) and try to put the new version in VS2008, it doesn't update in the repository. It asks to check out the old file and it even shows it as modified, but then if I get latest on somebody else's computer, it is still the old file. I do the same thing with Word files, and obviously all the source files too, and they're all fine. Is there a special trick I need to do with PDF files? Thanks!
-
- Posts: 2
- Joined: Fri Jul 11, 2008 3:27 pm
Here are the steps I took. I started with an existing PDF (PHA-Web Vendor Accounting.pdf) in the project, checked in. Version 2.
1. Ensure that all of my files are checked in.
2. Get latest on my entire solution in Visual Studio 2008.
3. Checked for renegade, unknown, or old files using the Vault client app.
4. From Visual Studio, deleted the old PDF. Now the "Vault Pending Changes" window shows that the project file is checked out and says it is modified with -74 bytes. Also, the pdf file shows with a type of "Delete File".
5. Now I drag the new file, named the same, from my desktop into the same folder as the old file. Now it shows the new file as "Add File". The old file still shows as "Delete file". The project file still says "Modified", but now it says "Size Unchanged".
6. Now I commit all from Visual Studio.
7. Then I recheck the statuses of all files in the solution like step 3. All good.
8. Check the PDF file in source control, see if the changes are still there. All good.
9. Go to a co-workers computer. The old version of the file is fine, not renegade. Get latest on the solution. Now that file becomes a renegade and the old version stays. If I get latest and overwrite it's all good.
I never noticed the renegade thing on the other computer, but that's probably what was causing the problem. Why doesn't it get the latest version on the other computer? If I updated any other file it would overwrite it properly, but not PDFs. Thanks for your help!
1. Ensure that all of my files are checked in.
2. Get latest on my entire solution in Visual Studio 2008.
3. Checked for renegade, unknown, or old files using the Vault client app.
4. From Visual Studio, deleted the old PDF. Now the "Vault Pending Changes" window shows that the project file is checked out and says it is modified with -74 bytes. Also, the pdf file shows with a type of "Delete File".
5. Now I drag the new file, named the same, from my desktop into the same folder as the old file. Now it shows the new file as "Add File". The old file still shows as "Delete file". The project file still says "Modified", but now it says "Size Unchanged".
6. Now I commit all from Visual Studio.
7. Then I recheck the statuses of all files in the solution like step 3. All good.
8. Check the PDF file in source control, see if the changes are still there. All good.
9. Go to a co-workers computer. The old version of the file is fine, not renegade. Get latest on the solution. Now that file becomes a renegade and the old version stays. If I get latest and overwrite it's all good.
I never noticed the renegade thing on the other computer, but that's probably what was causing the problem. Why doesn't it get the latest version on the other computer? If I updated any other file it would overwrite it properly, but not PDFs. Thanks for your help!
Did the proj file get checked in?
Or are you using the Attempt Automatic Merge option for the initial Get? I don't think PDF files are mergeable.
The way you are working with that pdf is a bit irregular. You could just check it out, then overwrite it with your new version and check it back in rather than deleting and adding repeatedly. Or you could check it out, then perform the edits and check it in.
Or are you using the Attempt Automatic Merge option for the initial Get? I don't think PDF files are mergeable.
The way you are working with that pdf is a bit irregular. You could just check it out, then overwrite it with your new version and check it back in rather than deleting and adding repeatedly. Or you could check it out, then perform the edits and check it in.