version-control

Workflow to “backport” change into different Mercurial (Hg) branch?

故事扮演 提交于 2019-12-19 13:56:22
问题 We have two heads. One is our main development head and the other is one that I forgot about until today. We found a bug and fixed it in our main development branch, and I just realized it should be fixed in the older branch as well. I think it would have been better to make the change on the older branch and merge that with the up-to-date branch, but we didn't do it that way. Can mercurial handle this? We haven't tried to do anything like this and I can't really wrap my head around how it

It is possible to completely remove a file from my SVN repository?

≡放荡痞女 提交于 2019-12-19 12:51:31
问题 I am using tortoise SVN for a project that I'm working alone and I have committed (by mistake) a huge file to my repository (a VC++ Intellisense Database). Now I want to remove this file from my repository to facilitate its backup. Removing the file from my project and doing a commit (obviously) do not solve my problem as the previous version of that file are still there in the repository. Is there a way to solve this problem that does not involve the creation of a new repository? EDIT The

It is possible to completely remove a file from my SVN repository?

那年仲夏 提交于 2019-12-19 12:50:55
问题 I am using tortoise SVN for a project that I'm working alone and I have committed (by mistake) a huge file to my repository (a VC++ Intellisense Database). Now I want to remove this file from my repository to facilitate its backup. Removing the file from my project and doing a commit (obviously) do not solve my problem as the previous version of that file are still there in the repository. Is there a way to solve this problem that does not involve the creation of a new repository? EDIT The

Updating a file using REST Api Visual Studio Team Services

不问归期 提交于 2019-12-19 11:49:14
问题 Is there any way to update the contents of a file in a project on your visual studio team services account using HTTP verbs, similar to how it is done here with github https://developer.github.com/v3/repos/contents/#update-a-file. var json={ "comment": "Update scripts.json", "changes": [{ "changeType": 2, "item": { "path": "$/ExtensionsTest/scripts.json", "contentMetadata": { "encoding": 65001 }, "version": 47 }, "newContent": { "content": "[ {\"hello\" : \"Test\"} ]", "contentType":"RawText"

How to get commits information on Jenkins using Groovy since last successful build?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-19 11:12:30
问题 How to write custom groovy script to easily manipulate data from all commits since last successful build? 回答1: Add new build step after gradle/maven step -> Execute system groovy script. Adaptable code: import com.tikal.jenkins.plugins.multijob.* import hudson.* import hudson.model.* import hudson.plugins.git.* import hudson.slaves.* import hudson.tasks.* def ln = System.getProperty('line.separator') println "---------------Groovy Changelog script Started---------------$ln" def

.gitattributes: merge=ours strategy vs. fast-forward merging

回眸只為那壹抹淺笑 提交于 2019-12-19 10:31:12
问题 If I am in such a git situation: * da6a750 (A) Further in A, okay for merging back into master * bf27b58 Merge branch 'master' into A |\ | * 86294d1 (HEAD -> master) Development on master * | abe6b8a Welcome to branch A |/ * 589517c First commit On the master branch, three files: ./development : development on master initial ./specific : master branch ./.gitattributes : specific merge=ours On A branch, three files as well: ./development : development on master initial development in A further

sparse svn update of deep directory structure

房东的猫 提交于 2019-12-19 09:28:21
问题 Is there a way to have a sparse checkout of an SVN repo with deep nested directory structure. I'm doing this using a listing of all the files in the repo and filtering for just *.xml: svn list --recursive "http://myRepo.com/trunk" > allFiles.txt I'm trying to do the following: svn checkout "http://myRepo.com/trunk" --depth empty "myRepo" svn update --set-depth empty project1/dirs/moreDirs/evenMore/file.xml I tried this but got an error saying it was skipping updating that file. If I manually

sparse svn update of deep directory structure

大兔子大兔子 提交于 2019-12-19 09:28:05
问题 Is there a way to have a sparse checkout of an SVN repo with deep nested directory structure. I'm doing this using a listing of all the files in the repo and filtering for just *.xml: svn list --recursive "http://myRepo.com/trunk" > allFiles.txt I'm trying to do the following: svn checkout "http://myRepo.com/trunk" --depth empty "myRepo" svn update --set-depth empty project1/dirs/moreDirs/evenMore/file.xml I tried this but got an error saying it was skipping updating that file. If I manually

Git svn does not use the svn credentials

China☆狼群 提交于 2019-12-19 09:26:38
问题 I try to clone a path from our svn repository. The repository is secured with passwords. I have found some subversion directories on my Windows 10 System and created symlinks for them. So it is only one directory. I opened the git-bash and started the command svn checkout --username myuser --password mypassword svn://myserver/myrepository/myproject/trunk SVN created in the auth/svn.simple directory a file with my credentials. The file starts with K 8 passtype V 8 wincrypt K 8 password ... The

PHP Source Control Server

杀马特。学长 韩版系。学妹 提交于 2019-12-19 09:20:27
问题 I there a PHP based source control 'server' that is compatible with SVN clients? I'd like to host my SVN on my hosting servers, however the current host will not allow me to start any process or install any software 回答1: You can have a PHP front end but you will still need to have the SVN server running somewhere. 回答2: You could try: http://sourceforge.net/projects/deltaweb 回答3: Not that I know of. You can look at services like CVSDude.org which provide great SVN hosting that's pretty