repository

How to init VersionControlServer class?

☆樱花仙子☆ 提交于 2019-12-08 04:00:11
问题 I want to download file from TFS 2013. I found the VersionControlServer class: msdn But how to initialize it? VersionControlServer vs; vs.DownloadFile(repositoryPath,localPath); // vs not initialized! Thank you! 回答1: String repositoryPath = "$/MyColl1/Folder1/Folder2/TargetFile.txt"; String localPathStored = Environment.CurrentDirectory + "/" + "TargetFile.txt"; String uriSite = "http://tfs-server:8080/tfs/../../vN.0/....asmx"; TfsTeamProjectCollection teamProjectCollection

Combining multiple repositories of multiple projects into a single repository of an over-arching solution in Visual Studio 2010?

柔情痞子 提交于 2019-12-08 02:27:46
问题 Suppose I have two Visual Studio 2010 projects, both in the same solution. One project is a dll library for performing task x. And the other is a Windows Forms GUI Frontend for that library. Let's also suppose that I started developing both these projects using two different mercurial repositories, (one for each project). Suppose I wanted to combine these two repositories into one repository of the overarching solution of both projects (without losing any of my commit messages). Would this be

Cannot access gitolite repos with non-gitolite admin users

荒凉一梦 提交于 2019-12-08 02:23:58
问题 I've installed Gitolite 3.5.3 on Ubuntu 12.04. I created test repo and I can access it over ssh only with gitolite user but not others. I need to allow access other system users (user1,user,user2) or usergroup to git(push, pull merge etc) over ssh like this: git clone user1@domain.com:megaproject But I try to connect like this: git clone user@domain.com:megaproject and write correct password for this user I get: fatal: 'megaproject' does not appear to be a git repository fatal: Could not read

Using Git on a local network. Cloning from one repository to multiple users, pushing back to remote and being able to see updates from all clones

℡╲_俬逩灬. 提交于 2019-12-08 01:59:43
问题 I have searched a few posts here (and elsewhere) about using git on a local (lan) network, but either I am missing something, or it's just not working. My scenario is as follows: We have a shared network drive of projects (Z:/) on all users PC's I want to create a repository within directory 'x' on the shared drive Each user (4 of them) need to clone the repository Users make changes, commit and push to remote master repository when major changes are made This seems simple enough, and the

SVN: set all files marked with “!” to “D”?

 ̄綄美尐妖づ 提交于 2019-12-07 22:53:07
问题 long story short, a mistake was made and now I have at least one hundred files throughout dozens of folders that need to be removed from my repository. Right now they're all marked as "!" in svn status and I'd like to remove them without manually typing in svn remove blahblah . Is there a quick way to do this? 回答1: This is pretty easy to do with a little shell-scripting-foo. svn status | grep "^\!" | awk '{print $2}' | xargs svn del Here's a breakdown, as requested: The output of svn status

Download artifacts archive from Artifactory

泄露秘密 提交于 2019-12-07 22:34:29
问题 I'm testing Artifactory 4.2.0 PRO. The really nice feature is the possibility to download an archive of all files produced by the build by executing, something like: curl -XPOST -u admin:password -H "Content-Type: application/json" http://localhost:8081/artifactory/api/archive/buildArtifacts -d ' { "buildName": "Vehicle Routing Problem", "buildNumber": "3", "archiveType": "zip" }' > build.zip However, I'm unable to find if there is a possibility to do the same (download archive) when

Shallow AND Sparse GIT Repository Clone

ぃ、小莉子 提交于 2019-12-07 19:37:39
问题 I have a shallow cloned git repository that is over 1 GB. I use sparse checkout for the files/dirs needed. How can I reduce the repository clone to just the sparse checkout files/dirs? Initially I was able to limit the cloned repository to only the sparse checkout by disabling checkout when cloning. Then setting up sparse checkout before doing the initial checkout. This limited the repository to only about 200 MB. Much more manageable. However updating remote branch info at some point in the

Generic repository, DI, Aggregation Roots

我怕爱的太早我们不能终老 提交于 2019-12-07 19:34:47
问题 Having a generic repository like public class Repository<T> where T: Entity<T> { /*anything else*/ } should concrete repositories per agregation root like class ProductRepository : Repository<Product> { } class CategoryRepository : Repository<Category> { } be created? Also how do I use DI ( Ninject ) with generic implementation of repository. Samples are apreciated! Thanks! 回答1: I see a lot of misuse of generics in the questions in SO and while it does not necessarily refer to your question

What is the best approach to reuse multiple repository criterias?

六月ゝ 毕业季﹏ 提交于 2019-12-07 19:03:45
问题 I have an repository layer that have many methods combination, to match search criterias.. What is the best approach to reuse this criterias? I think that methods name like findByNameAndIdAndBirthdayAndAccounaNumber is not a good idea ! Thanks ! public Order findByIdAndName(String orderId) { List<OrderEntity> list = entityManager.createNamedQuery(OrderEntity.QUERY_FIND_BY_ORDERID_AND_NAME, OrderEntity.class) .setParameter("orderId", orderId) .setParameter("name", name).getResultList(); if

Where should the transaction boundary be in a repository pattern?

烈酒焚心 提交于 2019-12-07 17:58:35
I have a repository like so: public interface IRepository { void Save<T>(T entity); void Create<T>(T entity); void Update<T>(T entity); void Delete<T>(T entity); IQueryable<T> GetAll<T>(); } My question is, where should my transaction boundaries be? Should I open a new transaction on every method and commit it before returning? Or should it be around the entire repository so that the transaction is only committed when the repository is disposed/garbage collected? Unit of Work is definitely the way to go. If you're using SQL Server with a local database, TransactionScope will do most of the