How do I resolve conflicts in TFS? - version-control

How do I resolve conflicts in TFS?
I must have forgotten to do a recursive get before editing a file. Whatever the cause is, I must now figure out how to resolve a conflict.
When I click on the workspace to performa check-in. One of the files as a two-way pointing arrow which I guess must mean there is a conflect.
When I click to perform a "Check In" a message box appears that tells me:
"No files checked in due to conflicting changes. Please use Conflicts Channel to resolve conflicts and try again".
So I googled "Conflicts Channel TFS" and I got some results but all of the results only gave suggestions, like, Click on "Automatic Resolve". The problem is that I do not see any of the menu commands or buttons to ckick on that they suggest.

Try getting latest on the file. That should trigger the conflict resolution screen.

Open the View menu in Visual Studio from the main tool bar. Scroll down to 'Other Windows', then open the 'Pending Changes' window.
On the right side of this Pending Changes window, there are 5 Buttons, each with an icon. The 5th one down is the Conflicts button. This will show you all the conflicts and will allow you to resolve them here.

Related

Re-enable "Externally added files can be added to Git" notification in PyCharm

There's a popup that occurs in PyCharm to let you manually add externally-created files to VCS. This is very convenient for e.g. Django migrations, which I often forget to commit otherwise. Unfortunately, I accidentally clicked the "Don't show again" button on the popup, and I cannot seem to find the setting to re-enable it, nor have searches turned up results on re-enabling it.
I still have "VCS important messages" enabled under notifications, which I believe this falls under.
How can I re-enable this popup?
i fix the same problem like this:
File→Setting→Version Control→Confirmation→
"When files are created":"☑Show "

SourceTree Won't Show All My Changes

I want to commit my works. But when I want to see what I changed and wrote them into commit message, I saw some of my changes won't show.
What is the problem?
Change The Maximum Lines And Size In Options
Tools > Options > Diff
Change Max Diff Line Count
And
Change Size Limit (Text)
I'm adding this answer as another possible cause of SourceTree "only showing the change history for a single file". This was annoying me for quite a while. No settings changes would display more than one file. THEN, I realised that the commit summary is actually a panel which slides up over the file list. ZOMG.
Make sure your filter is setup correctly:
For me the filter bugged out and while the main text said "Pending files", the dropdown had nothing selected.
Size Update For the latest ScourceTree
ScourceTree -> Preferences -> Diff -> Size limit(text)
Make sure that you copy the last version of your project, the one that you want to commit, to the directory of your repositories that you set for SourceTree. Replace the old project with the new one then open SourceTree
Open SourceTree, click commit, select all the files that you want to commit, which will probably be all the files you see (becuase SourceTree shows the changed files after you click commit).
On the Puush button on the top you'll se a red notification icon which means that you didn't push the last commit. Once you do that, your changes must be visible on BitBucket and SourceTree
Another possible reason:
Make sure Ignore whitespace in the diff view is not enabled.
If it is not a Pending issue or an options issue mentioned above, make sure Mercurial wasn't inadvertently checked if you're using it with Git. It will manifest in a similar way. If so, you're going to need to deinstall & re-install.

How do you bring back items in Eclipse SVN View when you did 'Remove from view' them?

I hid some files of a SVN repo by using the 'Remove from view' option. It's stated that they would show again in case of modification.
http://imgur.com/HEPRcF8
But now, Eclipse shows conflicts in my project, with absolutely 0 files with conflict.
http://imgur.com/2ZCOnwS
I'm thinking that it might be one of those files, but I can't find any way to show them again. So:
Is there a way to reset the repo view in Eclipse?
Is there another way to see where the conflict stated by Eclipse is coming from? When I use the svn command line, I don't see any conflict..
According to the Eclipse doc the file should reappear in the View if its conflicted:
Remove from View - removes the selected resource from the view. It
will reappear in the view if it's synchronization status changes.
File being in conflict should be considered as "synchronization status change", so I think that the removed-from-view file is not the conflicted one. I guess that you have a tree conflict in your working copy.
To determine the conflicted item, run the following command-line against your working copy:
svn status -q
The output of the command will show conflicted items only.

Cannot commit to SVN

Today I faced with a problem: cannot commit my local Android projects changes to svn.
Team -> Update and Team-> Clean Up didn't help me.
I don't get any messages. I click commit and see Show History -> my changes are not committed.
Thanks in advance.
You should probably get a hint by looking at the svn-console, and showing us what you get there: A random google-image to find the console:
http://www.eclipse.org/subversive/documentation/images/svn_console.png
If you have that console (should be on the bottom of your screen, otherwise try and find it with the window->show-view menu), but it's not showing anything SVN-related, you can press the button just left of the "minimize" button: It will give you some options ('new console view', 'java stack trace' and hopefully 'svn').

Xcode SCM - Need help with checking files back in!

Okay, I have another newbie question. I'm starting to work with a remote code repository, remotehosting.com, and have been given a username, password, and URL. I've been able to successfully associate my project with a remote source code repository, have checked out/pulled down the source files, and have now made a small change to a single file. Here's where my questions start.
1) I can't see anywhere in my GUI where Xcode realizes that I have made a change to a file
2) How do I check my files back in?
I gotta be missing something. The docs I've been reading point to more menu items that I currently see under my SCM menu item. Anybody have any ideas? Thanks in advance for your assistance!!!
File -> Source Control -> Commit, Select the files that you want to commit, add a comment and hit commit button.
This is the flow for xcode 4
In Xcode 3...
The Project window should have a column which displays the SCM status for your files. This can appear both in the "Groups & Files" outline view in the left pane and the file list in the right pane. The icon for the column is a little cylinder shape, a black-and-white version of the yellow cylinder that's shown when you manage repositories. If this column is not displayed, you can right-click on the header of either of those panes to bring up a menu with a list of columns. Select "SCM" from that. The status will display as the same one-letter codes that SVN uses on the command line.
In order to commit files, you can either a) select the particular files, or group you want to commit and use the menu command SCM>Commit Changes..., or b) Select SCM>Commit Entire Project... (which I personally have bound to ⌥-⌘-C in the Xcode key bindings preferences).
Either of these will display a sheet in which you can enter your commit message; the text field in this is very handy in that it accepts the Return key as a newline, rather than passing it to the "Commit" button, but could be confusing the first few times. Press ⌘-Return to activate the button and perform the commit.