version-control

TeamCity, how to get names of the files edited

南楼画角 提交于 2020-01-01 04:36:30
问题 I am using TeamCity and I am new to it. I have added a Build Configuration to the TeamCity and I created one VCS root to attach to it. However, my project have a special requirement to detect a particular file that was changed in the VCS root location and use that file in build step. I am sure this could be done in TeamCity, I am not able to figure out how. Any help? Thanks, 回答1: To get the names of the files changed this is what I did. Thanks to Sam Jones. I used System.TeamCity.build

TFS 2012 .gitignore .hgignore equivalent

不打扰是莪最后的温柔 提交于 2020-01-01 04:26:07
问题 In TFS 2012, there is a new mode for working locally, Local workspace . This is great news: No 'checking out' files No more read-only files and issues when working with files from programs other than VS. No more 'Get latest' not actually getting latest But it also means I'll need a way to tell TFS what files to ignore when monitoring the file system for changes. How is this handled in TFS2012? 回答1: Found the answer myself, by mucking about in the TFS ui. The answer is that it is handled by

Is there an easy way to revert an entire P4 changelist?

安稳与你 提交于 2020-01-01 04:17:11
问题 Let's say I checked in a changelist (in Perforce) with lots of files and I'd like to revert the entire changelist. Is there an easy way to "revert" the entire changelist in one fell swoop? Currently I do something like this for each file in the changelist: p4 sync //path/to/file#n (where "n" is the previous version of the file) cp file file#n p4 sync //path/to/file p4 edit //path/to/file cp file#n file rm file#n As you can imagine, this is quite cumbersome for a large changelist. 回答1: The

How to undo a git merge squash?

允我心安 提交于 2020-01-01 04:16:07
问题 I have just done a git merge --squash feature-branch into my develop branch. The problem is that the above command updated the head without creating a new commit. My intention was to create one single commit to apply to the head of develop . So in short, the log for the develop branch before and after the merge are exactly the same. Is there a way to revert back develop to what it was before the git merge ? Thank you. Solution Based on the comment from Dan D. and the accepted answer below I

How to use Git in a sneakernet environment?

天大地大妈咪最大 提交于 2020-01-01 04:11:07
问题 My project has a number of test PCs which are 100% off-net. We use a USB drive to transfer files too and from these PCs. Some development happens during the tests on those PCs. We transfer zips of the updated files, with the 'version info' coded in the name of the zip file. My question is how best to use Git for managing the sneakernet transfer of files (or repos, or what?) between the project's office PCs and the test PCs. It's not the normal 'use case' that is often presented for laptop

Simplest source control ever - what do you use?

纵然是瞬间 提交于 2020-01-01 03:29:05
问题 I am working on a solo project, writing all code myself so no collaboration is required, However, I do need the following features: Check in a current version, with comments Assign a label to a version Retrieve a version using label/tag NOT HOSTED (meaning I hold the repository on my local machine) free/open source With a nice GUI, not command line? I think SVN is a good one, but it seems a bit overkill for me. Anyone ever came across anything like that? 回答1: Why subversion is an overkill?

Setting up a workspace using Team Explorer Everywhere on Linux

梦想与她 提交于 2020-01-01 03:20:09
问题 Im having trouble creating a workspace and downloading the files from a Team Foundation Server using the Team Explorer Everywhere command line client (TEE-CLC-10.0.0). I've gotten as far as creating workspace: $ ../tfs/TEE-CLC-10.0.0/tf -login:secretUsername,secretPassword -server:http://secretHost:8080 workspace -new KOLOBI Workspace 'KOLOBI2' created. Then I want to download files from the server to my workspace: $ ../tfs/TEE-CLC-10.0.0/tf -login:secretUsername,secretPassword -server:http:/

Codeplex/Sourceforge for internal use [closed]

僤鯓⒐⒋嵵緔 提交于 2020-01-01 03:17:06
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I'm looking for a free/open source collaborative project manager that can be deployed internally in my workplace that would act similar to Codeplex or Sourceforge. Does anyone know of something like this, and if so do you have experience with it. Requirements: Open Source or Free Locally Deployable Has the same

How do I branch an individual file in SVN?

丶灬走出姿态 提交于 2020-01-01 03:07:45
问题 The subversion concept of branching appears to be focused on creating an [un]stable fork of the entire repository on which to do development. Is there a mechanism for creating branches of individual files? For a use case, think of a common header (*.h) file that has multiple platform-specific source (*.c) implementations. This type of branch is a permanent one. All of these branches would see ongoing development with occasional cross-branch merging. This is in sharp contrast to unstable

Ensuring a merge between branches happens in one direction

邮差的信 提交于 2020-01-01 02:30:10
问题 This morning I discovered that my co-worker had merged the wrong way between two branches in mercurial --we have a ver5 and ver6 branch, with extra files in ver6. Is there any way (a serverside hook probably) to enforce that the children of any ver5 node be from ver5? 回答1: Rather than post twice, would my answer to " Mercurial: allow merge from a release branch to the default one, but not vice versa " help? https://stackoverflow.com/a/19926324/1025457 回答2: Whether you have ver5 merged into