version-control

C# version control dll / api

旧时模样 提交于 2020-01-07 05:01:06
问题 I'm trying to find a version control Dll / Api that I can link/reference in my project without having to install a SVN of some kind. I've been trying all afternoon to get libgit2sharp to work, but am having problems with it. That'll be another question, but in the meantime, anyone have other suggestions? By the way, GitSharp is on hold and they suggested libgit2sharp as a replacement, so GitSharp isn't an option. 回答1: You may be willing to take a look at Witinyki . It's a very simple wiki web

what in general does the SCC API do?

空扰寡人 提交于 2020-01-07 04:48:06
问题 I can't seem to find general documentation on the Microsoft SCC API. I don't want to wade through detailed documentation on the specific interfaces/methods/etc, I just would like to know what in general it allows and what concepts it uses. (edit: without having to download the whole SDK or applying for a license requiring an NDA.) edit: what's the abstraction layer that it sees in common between different systems? e.g. there's files and changesets? or just files? and each file has a name? 回答1

How to take local working directory to any git revision irrespective of its branch after remote changes?

旧城冷巷雨未停 提交于 2020-01-07 02:42:44
问题 Background I am working on a phing build script, which takes input as the target revision to which the production codebase needs to be taken. I am preparing the same in a separate scratchpad directory and then overwriting the production codebase. Current logic During every build, I am simply emptying the scratchpad and taking a fresh clone of the entire git repository in it. Taking to the desired revision - git reset --hard ${target.git_version} I am sure something more efficient can be done.

Check subversion writable access for user

旧城冷巷雨未停 提交于 2020-01-06 20:07:08
问题 Is there any way to check whether user have writable access to some repository path? What I do now is trying to create directory and then delete it to check whether user has writable access: svn mkdir --username username --password password --message "check whether user username has repository writable access" "svn://localhost:3129/test" svn delete --username username --password password --message "check whether user username has repository writable access" "svn://localhost:3129/test" The

Check subversion writable access for user

ε祈祈猫儿з 提交于 2020-01-06 20:06:04
问题 Is there any way to check whether user have writable access to some repository path? What I do now is trying to create directory and then delete it to check whether user has writable access: svn mkdir --username username --password password --message "check whether user username has repository writable access" "svn://localhost:3129/test" svn delete --username username --password password --message "check whether user username has repository writable access" "svn://localhost:3129/test" The

Execute code on the previous commit without hard resetting the latest commit

倾然丶 夕夏残阳落幕 提交于 2020-01-06 05:17:46
问题 I am trying to validate that my changes aren't breaking existing code. To do that, after committing my changes I run the code and I need to validate the output with one previous commit(which does not have my changes). So, after the validation is done my changes must still be on the latest commit. 回答1: The easiest way to go here is probably to just checkout the previous commit in the detached HEAD state: git checkout HEAD~1 You should see a message something like this: You are in 'detached

Disable automatic commit of changed files in Visual Studio 2013 to git

余生颓废 提交于 2020-01-06 01:34:10
问题 Problem: When I add a new file into a web project in VS 2013, it is immediately "checked in" to git; the file is immediately saved and then the "check in" icon appears to the left of the file. If I make a change to an existing file, the moment I save the file it "checks in". Please note that the source git repository is not modified, but I think my local repository is being checked into. Expected behavior: Add a new file or change an existing one, save, file stays "checked out" and must be

Using private Composer VCS Git repo

耗尽温柔 提交于 2020-01-05 10:27:13
问题 I am trying to use my repo with composer. Fetching it as type package etc. worked well, but I would like to use it as a VCS. So, I added a composer.json to my repository looking like this: { "name": "gkm/storage", "authors": [ { "name": "David Schunke", "email": "my@email.me" } ], "require": { "php": ">=5.3.0" }, "autoload": { "psr-0": { "Gkm\\storage\\": "" } } } In the project, where I woult like to use the library from this repository, I added this composer.json: { "repositories": [ {

Why doesn't svn import work?

五迷三道 提交于 2020-01-05 08:44:10
问题 I have subversion setup on Mac OS X 10.5.6. When I do svn import myproject file:///library/subversion/myproject/trunk -m "initial import" Committed revision 2. Nothing happens. I'm back at the command prompt and no files are imported. Any suggestions? 回答1: Are you sure about that? It said import was committed...try a checkout! (and read the book:) 回答2: This isn't an answer but I can't stick in the comments. (If there is a better way moderator, please let me know). Here's the steps I did for

Merging branches on subversion

为君一笑 提交于 2020-01-05 08:28:10
问题 Could someone explain to me the process behind branching and merging? I don't know if I am doing something wrong but my merges are going very wrong. Here is my scenario: My repository is as follows: /repo |- branches |- tags |- trunk |- readme.txt //readme stores v1.0 Now I need to make 2 branches; 1 for new changes and 2 for bug fixes and they are as follows: /repo |- branches |- dev |- readme1.txt //readme renamed to readme1 and stores v1.0 |- readme2.txt //this file is empty |- bugfix |-