repository-design

Subversion Repository Layout

岁酱吖の 提交于 2019-12-28 05:05:18
问题 Most subversion tools create a default repository layout with /trunk, /branches and /tags. The documentation also recommends not using separate repositories for each project, so that code can be more easily shared. Following that advice has led to me having a repository with the following layout: /trunk /Project1 /Project2 /branches /Project1 /Project2 /tags /Project1 /Project2 and so on, you get the idea. Over time, I've found this structure a bit clumsy and it occurred to me that there's an

Subversion Repository Layout

社会主义新天地 提交于 2019-12-28 05:04:07
问题 Most subversion tools create a default repository layout with /trunk, /branches and /tags. The documentation also recommends not using separate repositories for each project, so that code can be more easily shared. Following that advice has led to me having a repository with the following layout: /trunk /Project1 /Project2 /branches /Project1 /Project2 /tags /Project1 /Project2 and so on, you get the idea. Over time, I've found this structure a bit clumsy and it occurred to me that there's an

How do I track “dot” configuration files in my home directory with git?

微笑、不失礼 提交于 2019-12-18 02:48:36
问题 I have a number of "dot" files in my home directory that I'd like to track with git - e.g. .pryrc , .zshrc , etc. I want to have a remote repository for these files so that a) there is an easy way to recover my configuration settings should I lose my machine for any reason; and b) to safely track any changes made to the files in the event I screw something up when configuring changes. I initially set up a git repository in the home directory to track them, with a .gitignore file configured to

Setting up a project directory structure for git repo of a website

纵饮孤独 提交于 2019-12-10 19:45:36
问题 I'm working on a drupal website. I've been keeping an svn repository of my custom modules which I've recently ported to github to work with another developer. Coming from SVN I'm used to just being able to update my custom modules folder on the staging website directly from my SVN repository. But from what I've read (correct me if I'm wrong please) this workflow is not possible with Git. What is the recommend way of setting up a repository for a drupal web project. Should I be putting the

How do I access svn branches using git-svn with a non-standard svn repo layout?

拈花ヽ惹草 提交于 2019-12-10 16:38:40
问题 The standard repo layout in svn is as follows. /trunk /branches featureX featureY /tags 1.0 2.0 The repository I'm working with is a much flatter structure. trunk featureX featureY Essentially, trunk is at the same level as the other branches. I can't use the -s or -b option with git svn init because of this. How would I pull in trunk as the git branch master and pull in featureX as a git branch of the same name? I don't care about any other branches or tags. I've seen similar questions and

AOP implemented with the Decorator pattern over a Generic Repository

拈花ヽ惹草 提交于 2019-12-07 08:10:26
问题 I'm trying to build a prototype that applies Aspect Oriented Programming to my project using Decorators. Some portion of my project will use a generic Repository (for simple CRUD), but eventually I'll also incorporate Command and Query handlers (these will perform specific tasks like ProcessCustomerOrders, etc.). Also, the cross-cutting concerns I’d like to example here are Security and Logging. Also, I know that my example code is not the using the Decorator pattern, but is just an example

Dispose method in web api 2 web service

早过忘川 提交于 2019-12-06 04:02:56
问题 I am coding an MVC 5 internet application with a web api 2 web service. Do I need a dispose method for the DbContext class in a web service? It is not there as default. 回答1: Actually, System.Web.Http.ApiController already implements IDisposable : // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. // ... public abstract class ApiController : IHttpController, IDisposable { // ... #region IDisposable public void

AOP implemented with the Decorator pattern over a Generic Repository

寵の児 提交于 2019-12-05 17:03:25
I'm trying to build a prototype that applies Aspect Oriented Programming to my project using Decorators. Some portion of my project will use a generic Repository (for simple CRUD), but eventually I'll also incorporate Command and Query handlers (these will perform specific tasks like ProcessCustomerOrders, etc.). Also, the cross-cutting concerns I’d like to example here are Security and Logging. Also, I know that my example code is not the using the Decorator pattern, but is just an example of the code I have in place for this prototype to provide a context. I understand there are other ways

Repository Pattern Best Practice

試著忘記壹切 提交于 2019-12-03 01:12:25
问题 So I'm implementing the repository pattern in an application and came across two "issues" in my understanding of the pattern: Querying - I've read responses that IQueryable should not be used when using repositories. However, it's obvious that you'd want to so that you are not returning a complete List of objects each time you call a method. Should it be implemented? If I have an IEnumerable method called List, what's the general "best practice" for an IQueryable? What parameters should

How do I track “dot” configuration files in my home directory with git?

时光毁灭记忆、已成空白 提交于 2019-11-28 23:46:40
I have a number of "dot" files in my home directory that I'd like to track with git - e.g. .pryrc , .zshrc , etc. I want to have a remote repository for these files so that a) there is an easy way to recover my configuration settings should I lose my machine for any reason; and b) to safely track any changes made to the files in the event I screw something up when configuring changes. I initially set up a git repository in the home directory to track them, with a .gitignore file configured to ignore every file except specific, whitelisted file names. However, I realized I'm not crazy about