repository

How to setup a git repository where different users can only see certain parts?

How do you setup a git repository where some users can see certain parts of the source code and other users can see all of it? I've seen lots of guides for only giving certain users commit access, but these assume everyone should have read access. I've also heard of gitosis, but I'm not sure it supports this and it hasn't had any commits...

Tortoise Delete File System Repository

I am working on a file system repository with Tortoise. I deleted the initial folder where I created the repository. The folder which I added to the old repository, when I try to add to a new repository, the error message appears: Repository UUID '6df16c57-c740-ea49-ab7f-fcd22d7f7cb9' doesn't match expected Is there a way to simply c...

SVN remote repository

Hi folks, we're currently investigating SVN at work - having escalated our practices to include a fair bit of development. I have to confess, we're finding the remote setup process rather tricky, none of our team is that conversant with Linux/SSH. My question is, how many of you you administer your own remote SVN repository versus using...

Loading Subrecords in the Repository Pattern

Using LINQ TO SQL as the underpinning of a Repository-based solution. My implementation is as follows: IRepository FindAll FindByID Insert Update Delete Then I have extension methods that are used to query the results as such: WhereSomethingEqualsTrue() ... My question is as follows: My Users repository has N roles. Do I create...

Is there a central FreePascal/Lazarus Component repository?

I'm looking to find something like Torry but instead of being Delphi centric, it should be Lazarus centric. I'm aware of the Source Forge Project Code and Component Repository but I'm looking for something with more span and a bit more searching features. ...

ASP.NET MVC - Validating uniqueness of a model

Hi What would be the best way to validate the uniqueness of a model? For example, making sure that only one user can have a certain username. I am using the repository pattern to interact with the database, so should I place the check int there? If so, how do I get this to filter back to the model? Thanks ...

Ninject not firing?

I'm trying to set up Ninject for the first time. I've got an IRepository interface, and a Repository implementation. I'm using ASP.NET MVC, and I'm trying to inject the implementation like so: public class HomeController : Controller { [Inject] public IRepository<BlogPost> _repo { get; set; } public ActionResult Index() {...

How can I find the root folder of a given subversion working copy

Quite often I'm sitting in the middle of a subversion working copy, and I want to do a quick svn status to find out what changes I have made since the last checkin. However svn status only works on the current folder and it's children. (Similarly for svn up too) I'd like a quick way to change to the root folder of the subversion working...

Netbeans: Could I use Apache Felix for a home-maintained repo of Java libs?

Hello! I'm using Netbeans. Often I need to specify own libraries, used by my projects. It is very unhandy to maintain them across multiple workspaces. As far as I understand correctly, Apache Felix, an implementation of OSGI's module system, could manage such libraries (provide versioning, automatic dependency resolvability, ...) If t...

Svn Switch 2 repos

Dear All I Have 2 repos with ! Working Copy Repo A as the Testing Version. Repo B as the Live Version. Default Commit And Update of my WC is from Repo A. I Want to switch from Repo A to Repo B without update data from Repo B. Because i want to commit data of my WC to repo B. But When i switch from Repo A to Repo B, My WC contents fro...

The repository pattern - looking up a repository based on a type

The application i am currently working on makes heavy use of the repository pattern with NHibernate. We have a generic base repository class that implements standard gets and saves. This class is then inherited by repositories for each type. These repositories can then add their own type specific methods (and override saves and gets if n...

Refactoring domain logic that accesses repositories in a legacy system

I am working with a legacy system that has an anemic domain model. The domain has the following entity classses: Car, CarType, CarComponent, CarComponentType. For each of these, there is a separate repository. There is also a number of services that access these repositories and contain basically all logic. I need to implement a metho...

How can I programmatically detect missing files in tar archive and delete them from svn repo

I have a Perl script to copy some config files from remote servers to the SVN repo and execute a commit. The config files on remote server are managed by different users. Sometimes the files are deleted by users. I want to make my script intelligent enough to detect that file as been deleted and able to issue a subsequent delete and repo...

Python - how to refer to relative paths of resources when working with code repository

We are working with a code repository which is deployed both to windows and linux, sometimes on different directories. How should one of the modules inside the project refer to one of the non-python resources in the project (CSV file, etc.)? If we do something like thefile=open('test.csv') or thefile=open('../somedirectory/test.csv')...

How to construct a repository Entity having an array of parts

I have a product entity which has several classes (each product type has different fields with thousands of product types). One product class could be a hammer which would have fields of "handle length", "head weight", etc. Another could be a chair with fields of "cushion material", "box spring", etc. Customers add fields based on the...

Free private SVN repository + document hosting

Possible Duplicates: Can you recommend a SVN, closed-source project hosting site? Is there a free version control server provider for non-public projects? Free Online Private SVN repositories Hi, I'm starting a new project with 14 more people and we're looking for some repository where we can host our code, specifically an S...

Simple TortoiseSVN Question - Where do I actually edit files

After going through tutorials on getting started with Tortoise I am finally starting to get it, the confusion for me is after going through the setup process: 1) I create my SVN repo 2) I have my directory where I work, lets say it's called "My Site" 3) I use tortoise to rightclick my site and import them to my SVN...good so far I thi...

How to create an open source repository

Hi, Time ago I started to develop a project and now I would like to make it open source. I am not familiar with open source contribution so I would really appreciate if anyone of you could suggest any good source (book or web tutorial) where I could learn how to setup a repository and arrange everything neccesary in order to make possib...

recreating svn repository

after a major server fault, svn repository was destroyed and my working version is most current one, what is the way to recreate svn repository from my working version? after installing svn on a new server and trying at my working copy svn switch NEW_SVN_PATH . i get an error Repository UUID '1c604742-6b16-462b-86e4-cc8bce959242'...

Repository pattern: Strategy for listing members

I'm building a set of CRUD screens for a Repository. The member objects are large enough that I'd rather not load lots of them into memory all at once - as when generating search results. Since all I need for search results are a couple of properties - e.g., "name" and "id" - I could just query the underlying database - but I don't want...