repository

delete file history with bazaar

天大地大妈咪最大 提交于 2019-12-03 15:04:08
Someone committed all binaries to our bazaar trunk, and I want to get rid of it. `bzr del file' only deletes the file from the current revision, but not the history of the file. Is there a way we can remove the file history so that we don't all have to download hundreds of MBs of data? There is 2 ways. But you need to be ready that you will re-create the part (or even full) of your branch history, so your current (local) branches will become incompatible with new branch after deleting the file. 1) Manual way. You can create a copy of your branch to revision just before big files have added.

What is the best way to organize multiple projects when using git

五迷三道 提交于 2019-12-03 15:02:52
问题 I have 5-10 independent projects that I want place under version control using Git. What is the best way to organize the projects/respositories: Use one repository for each project use one repository for all my work and use subdirectories for each project Or something completely different What has worked best for you and why? 回答1: I'd definitely say use one repository for each project. Otherwise you're going to have all sort of crosstalk between projects, not to mention it's a pain to specify

How to get foreign repository inside my repository in Doctrine2/Symfony2?

那年仲夏 提交于 2019-12-03 14:56:40
问题 I need values from 2 different entities. I don't know how to do. I tried this so far: <?php namespace Pond\GeolocBundle\Entity; use Doctrine\ORM\EntityRepository; /** * PondLakeRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class PondLakeRepository extends EntityRepository { public function getSwimsAvailableById($id) { // get the nb of swims of a lake $lake = $this->findOneById($id); $swims = $lake->getSwims(); $repository =

What's the difference between working directory and local repository?

為{幸葍}努か 提交于 2019-12-03 14:45:03
问题 I've created a new GitHub repository. I'm quite confused by working directory and local repository. When working on my own, my stuff all resides on working directory. But when work with repo, I should check my stuff there. But are they the same thing? or should they be separate. Then how to commit my stuff in working directory to my local repo. How to commit my local repo to remote repo. How to do this by Git Bash? Thanks! 回答1: Working directory is the directory with your source files under

Pausing & Resume Android Repo Sync

巧了我就是萌 提交于 2019-12-03 14:37:46
I am trying to sync the following repo repo init -u git://github.com/SlimRoms/platform_manifest.git -b jb The problem is i have started the repo sync around 30 hours ago & its still not complete. (i have a 1Mbps connection). I dont want to keep the laptop switched for so long now & would like to pause the current sync & resume later. So, i searched a bit, and found out that to pause the current download/sync i could use: ctrl+C ctrl+Z just close the terminal (it will resume download next time automatically) So i tried using ctrl+c, the download stopped. And then to resume i tried "fg", but it

How should I expose the total record count and IEnumable collection of paged records from my service layer method?

不羁的心 提交于 2019-12-03 14:21:18
I am using EF4 with code first and have a repository for persistence and a service layer that interacts with it. I have a service layer method that calls a IQueryable method on my repository and returns a IEnumerable containing the entities. I also need to return the total record count so I can calculate the paging links. How should I return both the int and IEnumerable from my service method? Use a out parameter on the method for the total row count Create a separate class that includes the total row count as a property Move the paging LINQ query out of the service layer (expose the

Is there a tool to create repo manifest file with SHA based on current work directory?

我的梦境 提交于 2019-12-03 14:12:00
I'm using repo, which is used by Android project, to manage my project. Is there a tool to create repo manifest file with SHA based on current work directory as the following? <?xml version="1.0" encoding="UTF-8"?> <manifest> <remote fetch="git://address.com/" name="origin" review="review.address.com"/> <default remote="origin" revision="ics-something" sync-j="4"/> <manifest-server url="http://manifests.address.com:8000"/> <!-- sniff --> <project name="platform/frameworks/base" path="frameworks/base" revision="ecb41a77411358d385e3fde5b4e98a5f3d9cfdd5"/> <project name="platform/packages/apps

Bitbucket API 2 - create repository in a team project

别说谁变了你拦得住时间么 提交于 2019-12-03 14:10:54
I have a team on my bitbucket account, myteam , which contains a project named mainproject . Whenever I want to create a repository inside I only need to execute this command line: $ curl -X POST -v -u myaccount:passwd "https://api.bitbucket.org/2.0/repositories/myteam/repo1" -d '{"scm": "git", "is_private": "true", "fork_policy": "no_public_forks"}' This works. However the issue arises when I create a second project, named secondproject . How am I supposed to tell the API to which project the repository should belong? I tried specifying the project information in the data (-d): $ curl -X POST

Designing repositories for DI (constructor injection) for service layer

北战南征 提交于 2019-12-03 13:22:57
问题 I'm building an MVC3 app, trying to use IoC and constructor injection. My database has (so far) about 50 tables. I am using EF4 (w/ POCO T4 template) for my DAC code. I am using the repository pattern, and each table has its own repository. My service classes in my service layer are injected w/ these repositories. Problem: My service classes are growing in the number of repositories they need. In some cases, I am approaching 10 repositories, and it's starting to smell. Is there a common

Dependency injection with multiple repositories

邮差的信 提交于 2019-12-03 13:21:23
问题 I have a wcf service and on the client i have: var service = new ServiceReference1.CACSServiceClient() The actual service code is: public CACSService() : this(new UserRepository(), new BusinessRepository()) { } public CACSService(IUserRepository Repository, IBusinessRepository businessRepository) { _IRepository = Repository; _IBusinessRepository = businessRepository; } So, all this works fine, but i don't like how i am newing up all the repositories at the same time because the client code