repository

How do I list all files ever committed to the repository?

故事扮演 提交于 2019-12-04 09:49:55
How could I let SVN list all files which were ever committed to a repository (if possible, along with location and revision). More exactly: I need all ever existed paths. If someone knows how to do a fulltext search on the entire repository (including all revisions), this would help me even better. Example Let's say I commit a file SomeFileOne.txt , later rename it to SomeFileTwo.txt . After performing the required task (for which solution I'm looking for), I should get not only SomeFileTwo.txt , but also SomeFileOne.txt . ... /trunk/SomeProject/SomeFileOne.txt - revision 100 /trunk

If I need to retrieve an object from a custom model binder should the binder interact with the service layer, the repository layer, or …?

杀马特。学长 韩版系。学妹 提交于 2019-12-04 09:30:45
If I have a class similar to this: public class Person { public string firstName { get; set; } public string lastName { get; set; } public Pet myPet { get; set; } } When I create a custom model binder, the Post from my form will not be sending in a Pet, it would send in data like this: firstName: "myFirstName" lastName: "myLastName" myPet: "myPetsName" Since the Pet's name is passed in, and not the actual Pet object, the Pet object needs to be retrieved from within the model binder. My question is, should the model binder be interacting with the Service Layer, the Repository Layer, or should

How to “repo init” on a disconnected system?

Deadly 提交于 2019-12-04 09:15:32
问题 I have mirrored a repository with repo init -u <uri of manifest> --mirror repo sync and copied it (by usb) to a system disconnected from the internet along with the repo script and the repo clone bundle repository from https://gerrit.googlesource.com/git-repo/clone.bundle. I now want to create new client from the mirror, but when I run the command. repo init -u <uri of manifest on mirror> i get the following error. fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle fatal:

How to build a generic repository

本小妞迷上赌 提交于 2019-12-04 08:44:47
问题 I'm developing a web application in ASP.NET MVC with NHibernate. Based in articles and tutorials I've found at Google, I'm using Repository for my classes. I have 10 classes and 10 repositories. Today I figured out that 90% of mine repositories are exactly equal each other, except for the class. This is one example: public class PromocaoRepository:IPromocaoRepository { private ISession Session; public PromocaoRepository() { this.Session = NHibernateSessionFactory.OpenSession(); } public void

How to list all files in a remote SVN repository?

谁说我不能喝 提交于 2019-12-04 08:04:44
问题 I access a large remote SVN repository. Since I usually only need a tiny subset of its content I did a "sparse checkout": svn checkout --depth empty svn+ssh://... src Whenever I need a folder from the repository I can just do svn up folder and when I don't need it anymore I use svn up --set-depth exclude folder But now I need a complete list of all the files in the repository and I don't want to do a complete checkout just to get the file and folder names. I already tried svn ls -R which will

Download Nuget Packages Without VS/NuGet Package Manager

天大地大妈咪最大 提交于 2019-12-04 07:51:50
问题 How can I download NuGet Packages outside of visual studio? so it can be used to create offline packages. 回答1: How to download NuGet Package without Visual Studio or Nuget Package Manager: Search your desired package at NuGet Official Site. Copy the end of the URL of the package page. For Example: http://nuget.org/packages/EntityFramework => Package Name is "EntityFramework" Enter the URL: http://packages.nuget.org/api/v1/package/ {Package Name} For Example: http://packages.nuget.org/api/v1

How to adjust history after merge of two unrelated Mercurial repositories?

丶灬走出姿态 提交于 2019-12-04 07:48:30
I have just merged two repositories following advice given here . Since both repositories are completely unrelated, i used hg convert --filemap fm rep1a rep1b hg convert --filemap fm rep2a rep2b to move files in repository 1 to a subdirectory a, and files from repository 2 to a subdirectory b. There are no conflicting files in both repositories now, so I combined them both. The result is a repository that has a merge revision with two parents, one containing the history of repository 1, the other of repository 2. Nice! mb--ma--2f--2e--2d--2c--2b--2a \ -------------------------1e--1d--1c--1b-

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

人走茶凉 提交于 2019-12-04 07:48:07
问题 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

Switching between multiple ssh keys in Git on Windows

牧云@^-^@ 提交于 2019-12-04 07:41:34
问题 I need to have multiple keys in my client to access two different accounts on Repository hosting. See https://redefy.repositoryhosting.com/support -> How do I manage multiple accounts with multiple keypairs on my client? I do not understand how to change between different ssh keys in Git on Windows, can anybody help me? 回答1: I assume you use git bash and openssh. Like what it's written in the article, you can make a configuration file for ssh client that lists all of your accounts. You can

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

痞子三分冷 提交于 2019-12-04 07:40:09
问题 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. 回答1: 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