repository

Mercurial push, abort: authorization failed

て烟熏妆下的殇ゞ 提交于 2019-12-02 17:24:48
I'm having problems with pushing to mercurial repository: $ hg push pushing to https://user:***@hg.domain.com/X_repo searching for changes abort: authorization failed The same URL (with the same credentials) is accessible through the web browser. Also, I tried it without embedding usr+pass into the URL. HTTPS is correctly configured, I tried both Basic and Digest auth -- without a luck. Pulling (through HTTP) works fine. I'm using hgwebdir to serve my repo. What else should I check? I found this: http://code.google.com/p/support/issues/detail?id=2580 In my case it's not random, it happens

Folder structure for many projects in one SVN repository?

半腔热情 提交于 2019-12-02 17:05:40
I just created a Google Code SVN repository for storing my school projects and homework, and to allow easy transferring between school and home. Its default directories it creates are: https://simucal-projects.googlecode.com/svn/trunk/ https://simucal-projects.googlecode.com/svn/tags/ https://simucal-projects.googlecode.com/svn/branches/ I've never used a repository for more than one project, but after reading: One svn repository or many? I've decided to have a single repository for all of my random school projects. Should I just replicate the folder structure above, but for each project?

Annotation-specified bean name conflicts with existing, non-compatible bean def

天大地大妈咪最大 提交于 2019-12-02 16:58:28
I'm having a problem with some Spring bean definitions. I have a couple of context xml files that are being loaded by my main() method, and both of them contain almost exclusively a tag. When my main method starts up, I get this error from Spring: Caused by: org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'converterDAO' for bean class [my.package.InMemoryConverterDaoImpl] conflicts with existing, non-compatible bean definition of same name and class [my.other.package.StaticConverterDAOImpl] Both DAO classes are annotated this way:

How can I write a clean Repository without exposing IQueryable to the rest of my application?

拟墨画扇 提交于 2019-12-02 16:47:01
So, I've read all the Q&A's here on SO regarding the subject of whether or not to expose IQueryable to the rest of your project or not (see here , and here ), and I've ultimately decided that I don't want to expose IQueryable to anything but my Model. Because IQueryable is tied to certain persistence implementations I don't like the idea of locking myself into this. Similarly, I'm not sure how good I feel about classes further down the call chain modifying the actual query that aren't in the repository. So, does anyone have any suggestions for how to write a clean and concise Repository

DAO, Repositories and Services in DDD

拈花ヽ惹草 提交于 2019-12-02 16:45:45
After reading several articles, I am starting to understand the difference between DAO and Repositories, but I find myself in trouble trying to understand the difference between Repositories and Services. For putting in short terms, in the OO paradigm: DAO : Class that contains the basic CRUD operations for one entity class. It has the necessary code to get or retrieve things of the underlying persistent storage system. Generally speaking, the methods receive object entities as parameters, except in the retrieve method where using a type of the Identifier is valid. Repositories : In a higher

Multiple Git repositories for each Eclipse project or one Git repository

旧时模样 提交于 2019-12-02 16:04:54
I am in the process of moving to Git from SVN. In SVN I had multiple eclipse projects in a single SVN repository that is convenient for browsing projects. I was going to move to having one git repository per eclipse project but EGit suggests doing otherwise. The guide for EGit suggests putting multiple projects into a single Git repository. Looking at similar questions such as this suggest one project per repository. Which approach is best practice and what do people implement? It depends on how closely-related these projects are. Ask yourself the following questions: Will they always need to

How to display available branches in Android source tree?

假如想象 提交于 2019-12-02 15:49:25
Following directions on Android's main website to pull down sources, I'm looking at this command to initialize repo for the cupcake branch: repo init -u git://android.git.kernel.org/platform/manifest.git -b cupcake How can I view all available branches besides cupcake, i.e eclair, donut, etc...? Volker Voecking It doesn't seem to be possible using the "repo" script, but you can query the list of available branches using git: $ git clone https://android.googlesource.com/platform/manifest.git $ cd manifest $ git branch -r If you don't want to clone the repository just for this, you can see the

sbt: How can I add a local filesystem jar to my project?

不想你离开。 提交于 2019-12-02 15:43:41
I have a library compiled to a jar (not an sbt project, just the jar file) that's not available on a repository. Is there a simple way to add a reference to the jar in the filesystem/project directly? You can put the jar in your project's lib folder (create it if it doesn't exist), it will then appear on your project's unmanaged-classpath. To publish a jar file locally, if you have an sbt project that produces the jar, it should be as simple as invoking "publish-local" to publish the jar to your local ivy repository so that you can use that jar in another one of your projects (on the same

How can I remove the working copy from a Mercurial clone?

给你一囗甜甜゛ 提交于 2019-12-02 15:22:42
When cloning a repository with mercurial you can pass the -U/--noupdate flag to create a clone with no working copy. Can I remove the working copy if I forget to pass this flag at clone time? And if so, how? This is conceptually similar to this git question , but for mercurial. pyfunc I might be missing the nuances here. Some one can correct me. Documentation at Mercurial wiki says following about bare repositories: " Although this is a minor issue, Mercurial can obviously handle a bare repository; that is, a repository without a working copy. In Git you need a configuration option for that,

Pull remote branch into local repo with different name?

对着背影说爱祢 提交于 2019-12-02 15:00:01
Alright I did a little bit of research on this but I couldn't find an exact answer, so I have to ask. I have 2 remotes: origin and repo2. I'd like to do something like git pull repo2 master But this would pull the master branch of the repo2 into my master. Can I specify a different branch to pull into, for my local branch ? git checkout -b myBranchName repo2/master Ben Jackson The git pull command is a convenience function that does git fetch and git merge . If you only want retrieve branches from a new remote without trying to merge it into any working copy branch you can just use git fetch .