I use ClearCase. I have a snapshot view. Is there a way to compare this view with stream to find changed files?
In TortoiseSVN this is called "Check for modifications" and shows all difference between local copy and what we have in the repo.
I'm not sure about Clear Case's own possibilities, but you always can make a view of that stream and compare your original view with created one using any file/folder comparison tool. I use Araxis Merge for that. There is also an open source tool: WinMerge
Have you tried the 'version-tree' feature?
Related
Apparently I have some problems with my local work-space and I not able to deploy anything to TFS server successfully.
Is it possible to download last working solution and replace my local?
If so, how?
Thank you for you help in advance.
In the source control explorer, right click on the folder you want to replace, navigate to "Advanced", and choose "Get Specific Version".
(Assuming you use TFVC and not git...)
yes, of course, you can. do you know the type of your workspace (local\server)?
in any way you can get specific version from the context menu, then choose the latest version: enter image description here
if you want, you can delete ALL local content before, make to select the checkboxes to overwirte the local and ignore the disk
If your workspace is large, you can use scorch command instead:
tf vc scorch
this command checks the disk with the server and removes untracked files
With Visual Studio and TFS, is there a way to have a diff showing in a single page changes for each file before doing a checkin ? Instead of having to do diff of each file one after the other.
Similar to the UI of GitHub for Windows when doing a commit:
file1
diff
file2
diff
...
Thanks,
Edit: as mentioned by Jehan33 the view I'm looking for looks like this (it's available on the web portal AFTER a commit):
This view is available after the check-in for the change sets where it will display all the file differences for a changeset in single page in web portal. Its not possible to do the same before the check-in.
Assuming your are using Team Foundation Version Control. If you right click on the folder where you have pending changes and click Compare. Select the options
"Show Items that exists only in source path", "Show Items that exists only in target path" and "Show items that are different", you will get the desired view.
The closest thing I've found was Diff All Files.
You can choose to combine all changed files into one and compare. Sadly there is no 'lines of context', however the code is open source and you can choose an external diff tool which may achieve this.
I'm working on a project where I need to have a few branches of the same source code open at the same time. Is there an easy way to tell at-a-glance what branch I'm looking at on visual studio. At the moment I'm inspecting the properties of a source file to view the path in order to identify the branch.
There must be a better way - how can I tell at a glance what branch I'm looking at?
Try the VsCommands extension. It shows the current branch in the solution badge in the taskbar, and the title bar. I am using mercurial and it seems to work well with that.
Use the free Branch Info TE Extension (BITE) for VS2013:
https://visualstudiogallery.msdn.microsoft.com/33a5274b-271b-45dd-8dc5-734d927a19dd?SRC=VSIDE
If it's exactly the same code - what's the point in it?
If it's not, maybe use different named projects inside the same solution?
BTW, you don't have to change default namespace with the project name, so it should be relatively easy to do.
Then there's another way - hover your mouse pointer over the file tab, you'll see the file path almost immediately. I do that every time I work on new version, but checking something from the old version.
If there are only 2 versions - you can use 2 monitors. I put the old (less used) version on "side" display, and current (most changed) on "front" one.
When I make edits to file, TortoiseSVN will show an indication on the folder that file belongs to that there are changes pending to child items. AnkhSVN only shows (red tick) changes to a project when files are added/removed (because the actual content of the project file in this case has changed)
Can you make ankh give any indication at the project level that child items have been edited?
Unfortunately, no. Ankh only shows an indication on modified files, whereas TortoiseSVN can traverse folders recursively and mark those with changed files within them.
If you desperately need this feature, you can try out VisualSVN plugin. It tries to mimic TortoiseSVN behaviour as close as possible. In fact, it uses TSVN dialogs for operations such as Commit or Update, for instance. When you modify a file within a project, it highlights the file, the project this file belongs to, as well as the solution node in the Solution Explorer.
Unfortunately, it's not free (US $49 per seat), but IMO it is worth its price.
The recommended way to see what changed globally in AnkhSVN is the 'Pending Changes' toolwindow. This shows you all interesting files in a single view and allows you to operate on them easily.
You can open the toolwindow via View->Pending Changes.
Try this:
Right Click the File -> Subversion -> Lock
This places a lock on the file so that others cannot edit it.
When you commit, it should unlock the file.
If it does not, Follow the same steps and select Unlock.
Edit: I use AnkhSVN for my svn but it's just me that uses it. If a corporate environment I mainly use TFS which does the same thing (lock/unlock) but it does not allow others to check out.
When I get latest from TFS source control, I don't see the changes made to my workspace.
I know I can go to the Output window and see the changes, but this is just a text list with no context actions.
What I really want is to see a list of changes, with the ability to right-click a file and see differences straight away.
Is there a better, alternative way to see changes like this after getting latest?
Sounds like using the command line tool tf.exe with folderdiff command would achieve what you need.
Use the folderdiff command to display
and compare a visual representation of
the differences between files in two
server folders, in a server folder and
a local folder, or in two local
folders.
From the header toolbar click the "Find Chengsets" option (it is between History and Branch options), it will open a dialog box, on that fill your required attributes and click Find button on that dialog box.