w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
Backing up source files managed by source control software: TortoiseSVN
To make sense of the repository structure you need to read all the documentation on SVN, but the preferred way to backup a SVN repository is through the command svnadmin dump your_svn_repository_path > destination_filename_backup.svn You could put this command in a scheduled task running sometime before your corporate tool execute the full backup of your data and include the destination_filename_backup.svn in your backup job If you ever need to restore the backup (after recreating the repository) you could use the command svnadmin load your_svn_repository_path < destination_filename_backup.svn

Categories : Vb.Net

How do you put an ASP.Net MVC 4 application in source control?
This is a great article on using NuGet without adding the packages to source control. The article is for VS 2010, but I am doing the same thing in VS 2012 Using NuGet without adding packages to source control

Categories : Asp Net

nuget and source control?
The option you're after is "Enable NuGet Package Restore" within Visual Studio: Go to Solution Explorer Right-click on the solution Click "Enable NuGet Package Restore" This will allow automatic downloading of NuGet packages during the build process.

Categories : Dotnet

How to use Git for Unity source control?
The following is an excerpt from my personal blog . Using Git with 3D Games Update Oct 2015: GitHub has since released a plugin for Git called Git LFS that directly deals with the below problem. You can now easily and efficiently version large binary files! Git can work fine with 3D games out of the box. However the main caveat here is that versioning large (>5 MB) media files can be a problem over the long term as your commit history bloats. We have solved this potential issue in our projects by only versioning the binary asset when it is considered final. Our 3D artists use Dropbox to work on WIP assets, both for the reason above and because it's much faster and simpler (not many artists will actively want to use Git!). Git Workflow Your Git workflow is very much something you

Categories : GIT

What to put under Source Control in a Java Project
Source control is/should be used to put the source and resources files in it. You should avoid putting the .class or any project settings file in source control. Class files are generated as per the latest source, you should put the build file in source control to help with that. Any project/environment related settings should not be pushed to source control as each person using that source may have different environment settings. web.xml is a resource file and should be put in source control. All other resources such as config files can also go in your repository.

Categories : Java

Source control when using developing libraries
Nearest iteration to Mercurial's subrepos in Git is Git submodules, which have own problems and edge-corners (but in any case main repo and module have hard linking in each changeset, thus you always can restore the whole repository to the exact state as it was earlier) and Git subtree may be considered as good alternative with improved (but identical in common sense) functionality Good blog-post about using Git subtree from Pardus: Modular git with "git subtree"

Categories : GIT

How to set visibility on a component in RTC source control
All the access management possibilities are explained in "Controlling access to source control in Rational Team Control". The "Read protect some components but give public access to others" is close to what you are looking for. But you can also protect at the folder level for a specific team area. Prior to RTC 40, there was no access control on the folder or file level in the repository so keep this in mind when laying out your file system with certain documents that should be hidden. Access control at the file and folder level was added in RTC 4.0. Regarding the "scoped" notion: For components owned by the project area, its access is scoped the same way the project area is. (so only the member of the project area can see/access it) For components owned by an individual u

Categories : Misc

Phonegap source control gotchas?
In my project we only commit the www folder and a windows batch file (We develop on Windows) that is the responsable for install automatically each plugin that the app needs. When a new plugin is added, we add a new entry to that file. When a new developer wants to make his developt enviroment with the app, him creates a new proyect and imports the www folder. After that, he runs the local build command and later runs the custom porject plugin file.

Categories : IOS

TFS Branching / Source Control Strategy
This is quite a subjective question, but I can offer an opinion. Obviously, the best branching strategy for one person may differ for another depending on the team, the software, the testing requirements, etc. My advice would be to create a single Main branch for the software, include all the unit tests in the project solution. When you come to do your first piece of development on a project, branch that project (or if they all need to be released together then branch them all) to a dev feature branch (effectively, just create a source controlled folder named Dev and branch into that for the feature). When you've completed your development, merge that back into Main. It usually makes sense for Main to be a gated check-in. Once you've merged - delete your dev feature branch. When you

Categories : Dotnet

WPF Image Control Source with Redirects
As the AllowAutoRedirect flag is set to true for WebClient instances (see Remarks here), the following may work, and may perhaps be the easiest way to handle redirections. Note however that I didn't test it, as I had no redirected image URL at hand. var url = ... var buffer = (new WebClient()).DownloadData(url); var bitmap = new BitmapImage(); using (var stream = new MemoryStream(buffer)) { bitmap.BeginInit(); bitmap.CacheOption = BitmapCacheOption.OnLoad; bitmap.StreamSource = stream; bitmap.EndInit(); } image.Source = bitmap; If it works, you may put this code in a binding converter. Having said all this, I'd expect WPF's built in type converter (from URL string to ImageSource) to also use either HttpWebRequest or WebClient. For both the default behavior is to all

Categories : Wpf

How to merge changes from one stream to another in RTC source control
"1." is the safest, isolating the result of the merge in S3 "2." would publish the result of the merge directly in S1 So it depends who needs the result of this merge, and for what. if you need to test a bit the result of that merge, while you go on developing S1, then having S3 is handy. but if you need, for developing S1, to have S2 devs merged in it, then scenario "2." is the more direct approach.

Categories : Misc

What is the difference between these two icons in RTC source control
The first one represents a team area with a customized process. The second one is for a team area using an inherited process. On the overview tab, on the top right corner, you can click on "customize process" to transform the type of team area.

Categories : Misc

How to control source ip or port for UDP packet with nodejs
The solution was simple. I overlooked this line from the node documentation for the send method of udp sockets, "If the socket has not been previously bound with a call to bind, it's assigned a random port number..." I just needed to bind the socket to a port first. I've verified this with a test script.

Categories : Node Js

IntelliJ change lists without source control
What I usually see is the use of an intermediate SCM tool which can interface with IntelliJ without disrupting the target SCM used (here RTC, through a local workspace or sandbox) For instance, you can use git, as in "In git, what is a changelist?". Once you are ready to commit, you can refresh your pending changes view in IntelliJ IDEA (if you are using the "JazzConnect-IntelliJ")

Categories : Intellij Idea

Bing Map WPF Control , Tile Source URL, Cookies?
You can handle custom tile URL's by creating a custom tile source that creates the URL on the fly like so: public class MyTileSource : TileSource { private string _baseTileURL = "https://www.sample.com/{2}/{0}_{1}.png"; public override Uri GetUri(int x, int y, int zoomLevel) { //{0} = X //{1} = Y //{2} = Z return new Uri(string.Format(_baseTileURL, x, y, zoomLevel)); } } You can then implement this like so: MyTileSource tileSource = new MyTileSource(); MapTileLayer tileLayer = new MapTileLayer() { TileSource = tileSource }; MyMap.Children.Add(tileLayer); Using the tile layers you won't be able to cookies with your tile url requests. There is an update to the WPF map control coming soon which allows you to have a lot more flexibil

Categories : Wpf

Do I need to add all packages from nuget into TFS source control if I want a CI setup?
Have a look at NuGet Package Restore. In a nutshell, it will automatically download missing packages from nuget.org, so you don't have do commit them. The latest version (2.7) introduced some breaking changes so check the version you are using...

Categories : Visual Studio

Why does CruiseControl.NET's GIT source control block use "log -m" to get modifications?
Afaik -m was introduced to detect merge commits correctly. See this change: https://github.com/ccnet/CruiseControl.NET/commit/a65380e7d302370cfcb6fa3905dba0ed1b731458

Categories : GIT

How to hide change sets in RTC source control
The article "Controlling access to source control in Rational Team Control" doesn't mention anything regarding read access within a component of a change set. In other words, a change set, especially one delivered, cannot be hidden. Independently of any change set, you can "Read protect some files or folders within a component but give public access to others":

Categories : Misc

How to enable Source Control in existing iOS project?
I am not sure how to do this from within XCode, but if you are on OSX you can easily initialize git from the command line (within Terminal). From the base directory of the project invoke git init. Once the project is associated with a git repository, XCode should recognize that and you will see the project listed among the repositories in XCode's Organizer (available from the Window -> Organizer menu) To upload the project into github, look at the directions here: https://help.github.com/articles/create-a-repo

Categories : IOS

MVC - base solution Vs Branched source control
Option 2 will make it harder to apply enhancement. You must apply it in 2 places. It will be worse if either branch is incompatible so some adjustment / modification is needed. It will be useful if the differences between environment is big. Option 1 is better. Please note that you will need good plan to design partial CSS / javascript code. However, with this design you will face with code duplication (which is also happen in option 2). Consider this code: public void DoSomething(){ // retrieve data // specific code for EU / NA // save data } This can lead to duplication in retrieve data and save data. There is some trick to handle this but I think the cleanest way is to use Dependency Injection. With DI and decent DI Container (I'm inexperienced in configuring DI Contai

Categories : Asp Net Mvc

Using Source Code Control in Oracle SQL Developer
Firstly, your question talks about two un-related concepts - using source control in SQL Developer and the other about PL/SQL. Hence here is a response that will hopefully disambiguate everything for you: Oracle SQL Developer does provide a way to integrate with source control. Refer this link for instructions. It talks about Subversion, howver the same must be applicable to any other source control repository like Perforce or Clearcase. Whether this is a better solution to doing version control to Oracle - there is no definitive Yes/No for this; however the approach is definitely recommended (why else would they provide it in the first place? :) ). Keeping your code editor integrated with version control will save the pain associated with manually checking out every file that you are e

Categories : Oracle

Eclipse TFS - Source Control Explorer Error
I've seen this exact error before on my box. In my case this file had gone missing due to its long path and filename: "...pluginscom.microsoft.tfs.client.common.ui.vcexplorer_10.1.0.201101271439commicrosoft fsclientcommonuivcexplorerversioncontrol VersionControlEditor$VersionControlEditorRepositoryUpdatedListener.class" You can see how this can get somewhat long. I'd suggest checking if you have all the files perhaps comparing it with an installation on a shorter path. Hope this helps.

Categories : Eclipse

git clone from Visual studio (using the Git Source Control Provider)
According to this discussion, it seems like the Git Source Control Provider does not support cloning through the GUI yet. Try cloning from the git bash command line with git clone REPO_URL.

Categories : GIT

Automating Red gate Source Control DB Linking and Commit to SVN
That's a tough one. Depending on how you automate, you could use a combination of other programs. For instance, if you have some sort of CI system, you could automatically compare the files in source control to a live database using SQL Compare and tell it to synchronize. You would need the source control system's command-line interface to check the changes back in. SQL Source Control, as a piece of software, was designed to work interactively only. If you want to do this in code (c#, VB), then you could leverage the source control system's API to check in files if they have one. For instance, SVN has "SharpSVN" and there is also an API for TFS.

Categories : Svn

Handling white space and formatting in source control
Having everybody use the same settings is a good idea in general. If everybody adheres to the same format, settings, and conventions, then this can help reduce the "learning curve" when switching between code that another person wrote. That being said, if most of the differences are whitespaces then that may indicate a shortcoming of the diff tool. Fortunately, Visual Studio allows you to swap out the built-in diff tool with something of your choosing. You just have to find one that works best for your needs. KDiff3 is a pretty good one. Here's an example on how to configure KDiff3 with Visual Studio. There's a setting (possibly a command line parameter) in KDiff that you can set and it will ignore whitespace differences.

Categories : Visual Studio

Source Control Explorer Keeps refreshing and flickering with every change
MS is apparently aware of the issue and claims to be working on a fix. http://www.beta.microsoft.com/VisualStudio/feedback/details/803702/source-control-explorer-left-hand-tree-flickers-and-locks-up-every-time-i-check-in-a-pending-change

Categories : Visual Studio 2012

Hiding a stream in rtc source control stopped working
The one article on RTC(4) for RTC resource access control is called: "Controlling access to source control in Rational Team Control" The section "Use permissions to control access to streams" (RTC3.0.1+) repeats what you did (stream visibility and ownership), but also adds: Create a private component in the stream: In the stream editor, click the New button beside the component list. In the editor give the name the component Flux Capacitor 2. Save the editor. Make the component private by selecting Flux Capacitor 2 and clicking on the Change Owner button. In the ownership dialog, expand JUnit Project and select Flux Capacitor Tiger Team. Visibility is limited by checking the Restrict to members of this team area and its child team areas So make sure your components are private

Categories : Misc

Performance issue when querying source control permissions with TFS SDK
I have one thing. Your query is terribly slow because first, you take all projectItems.Items to a list and then, when you pass it as an argument to the method VersionControlService.GetPermissions() you convert it to an array using ToArray(), which causes copying all the items in the list. I suggest that you do not convert items to List. Use IEnumerable<string> instead.

Categories : C#

How to manage external libraries in Xcode/git source control?
It looks like you can do this trick to create a git copy of the svn repository, then create a submodule from the git copy: Is it possible to have a subversion repository as a git submodule?

Categories : Xcode

Using CCNet is there a way to branch on the type of source control change?
The only idea I can think of is: You have access to certain CC.NET variables. http://build.sharpdevelop.net/ccnet/doc/CCNET/Integration%20Properties.html If you write your build logic in msbuild, you can check these values (listed in the url above). I'm not sure if there are any in there that meet your requirement. I think of CC.NET as a "big fancy msbuild.exe caller"........... You can look at these as well. http://build.sharpdevelop.net/ccnet/doc/CCNET/Dynamic%20Parameters.html I don't think you can do what you want, but here are some hints.

Categories : Asp Net

How to solve Source control operation failed: svn: E155007?
The message svn: E155007: 'C:MaxLeadProLivePortal' is not a working copy indicates that your configured working directory is not a subversion working copy. You may want to check why this directory does not exist anymore and if autoGetSource is true. Take a look at the configuration of your Subversion configuration in CCNet

Categories : Svn

Skipping the staging area using Git Source Control Provider
No, not from the current state of the commit implementation, like GitUI.UI.CommitBox.xaml.cs illustrates. Plus you see issues like ""No file has been staged for commit" error when committing from the Git Pending Changes window", which shows the commit dialog still need some work. So it is a good opportunity to contribute to that project.

Categories : GIT

How to update a data source in parent from a user control in asp.net?
Create an event in the child page like so: public event EventHandler DataChanged; From the child page, call it like this when appropriate: if (DataChanged != null) DataChanged(sender, new EventArgs()); Then in the parent page, create a method to be called and attach it like so: protected void DoSomething(object sender, EventArgs e) { } child.DataChanged += DoSomething; Oh yeah, I almost forgot. I think you have to set up the event relationship in Page_Init() rather than waiting for Page_Load().

Categories : Asp Net

Changing source control after collection database was deleted
Click Team -> Connect Team Foundation Serve You can see the list of the collection. Right click the new collection and click connect. it will connect to the new collection. Now right click your old collection and click Remove and that will remove your old collection. Also make sure you do not have any pending check ins for the old collection.

Categories : Visual Studio 2012

Access data source of main program in user control
I don't know what answer (how detailed) you expect, but I think this is a very good example to: reuse one control use MVVM architecture pattern I would try to seperate class which would execute logic responsible for creating ViewModel. Control (grid in your purpose) would be always binded to this ViewModel, and this Control would be reuse in different Views. Depend on where it would be placed you can add some additional features if it is necessary (Decorator design pattern). If you expected more detailed (not conceptual) solution than sorry.

Categories : C#

How to create Explorer Shortcuts to specific TFS 2010 Source Control Paths
Until they're mapped to a local file path, I don't think this is possible. Though there might be an undocumented way to craft a vstfs:///VersionControl/LatestItemVersion/{itemid} link that might work, I haven't been able to craft one that does the trick. You could create a powershell script that would check for the local mapping, otherwise ask them where they want to put it and setup the mapping, do a get-latest and go from there... A bit of trickery with the tf commandline should get you pretty far. tf workspaces /owner /collecion /computer to see whether there's a local workspace to the right team project. tf workspace /new /collection to create one if needed tf workfold /map to create a folder mapping, you could prompt them for a target location tf get to fetch the latest sources.

Categories : Visual Studio 2010

Strategy regarding tagging in source control from the continuous integration build systems
Essentially this looks like it boils down to making sure you can trace from a given build back to the source code that created it (and vice versa) - I have seen two general approaches to solving this The solution you mention - mark the code in the SCM with the build number (with tagging being the obvious way to do this) The opposite - store the revision number from the SCM inside the package produced by your build (for example have the build spit out a small text file containing the SCM revision number that gets included in the package). I would say that both of these solutions work quite well, and the best one to use depends on how you intend to use this information. For example, if your motivation is that, when debugging an issue on a production system, you can easily check out the r

Categories : Jenkins

Entity Framework - Source control for database schemes and test data?
Considering that you are using the "Database First" approach, you can (within visual studio) create a "Database Project" from your scheme. Using the database project, you don't need to keep the Sql Managemenet Studio opened to maintain scheme and you can configure deploy including loads of data with pre-deployment and post-deployment scripts. I believe this is a simple, elegant and professional way to solve your problem. The database project improved in Visual Studio 2012. Hope it helps.

Categories : C#

How do I include license (.lic) files in my bin folder while ensuring they're covered by source control?
The way I accomplished this was to place my license files in the project root (I imagine you can place them anywhere within the project). Then, I set their properties (ctrl-click each .lic file and press Alt+Enter, or click the Properties tab): Setting Copy to output directory to "Copy always" causes the files to be moved to the bin folder at build time. Setting Build action to "None" prevents the files from being published at their original location along with the other content. Without this setting, the license files would be published at the website root and could be downloaded.

Categories : Visual Studio

Any good ways of quickly auditing code in a source control compared to production?
Since SSRS and SSIS are XML files, you could compare the text with the source code. It sounds like you might need to create your own custom code to compare. Some questions I would have when doing something like this: Are the production files in a similar folder structure to the source code? Is there a standard naming convention for files? Is a source file's name unique? In .net you can do some file comparison, if you need difference sets, you might look for a tool/library you could use.

Categories : SQL



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.