Questions tagged [sharpsvn]

SharpSvn is a binding of the Subversion Client API for .Net 2.0-4.0+ applications contained within a set of xcopy-deployable dll's

309 questions
2
votes
1 answer

How to access file information in a pre-commit hook using SharpSVN

I am new to SharpSVN and SVN in general. I am trying to implement a pre-commit hook that when the user commits a certain type of XML file; I am going to need to intercept the file and analyze it to ensure they included certain elements before I…
Flea
  • 21
  • 2
2
votes
1 answer

SharpSVN not iterating over all subdirectories and files

Following the code found here: How to check if file is under source control in SharpSvn? I'm trying to make a small utility application that will iterate over a designated folder and print out the status of all the files. private void…
sab669
  • 3,984
  • 8
  • 38
  • 75
2
votes
1 answer

How to get revision date time using sharpsvn (working copy)

I need to get the date/time when the revision was commited, Now I can get last revision but not finding how to get the date and time when this revision created. This is my code now. Int32 LastRevision; var workingCopyClient = new…
2
votes
1 answer

Issues of replacing SharpSVN 1.5 dll to SharpSVN 1.6 dll

We are using SharpSVN 1.5 dll for our source control functionalites. Our checkout and CheckIn works as follws Suppose I want to checkout a folder name TEST and its contain 3 files say file1.txt,file2.txt,file3.txt Step 1:- Checkout file1.txt from…
2
votes
1 answer

SharpSVN update to specific revision c#

I'm iterating over the svn revisions from sourceRevision to targetRevision. In each iteration, I wish to update my repository to the revision I'm current in. Something like: SvnClient svnClient = new SvnClient(); svnClient.Update ("C:\Svn",…
Idanis
  • 1,918
  • 6
  • 38
  • 69
2
votes
2 answers

Get credentials from SharpSvn in C#

I am writing some C# code to perform multiple commits to SVN in one pass, much like the tool svnmucc. So far I've been using SharpSvn to do the rest of the necessary communication with SVN, so I'm thinking I can take advantage of it to accomplish…
Tyler Collier
  • 11,489
  • 9
  • 73
  • 80
2
votes
1 answer

Can't determine the user's config path (when trying to get the revision number)

I am using SharpSVN dll with my Visual Studio 2010 to get the latest revision number so I can version my project using this number. I tried this piece of code below but it gives me error saying: Can't determine the user's config path I don't even…
Cute Bear
  • 3,223
  • 13
  • 44
  • 69
2
votes
1 answer

Can I use a text file to set svn:externals in SharpSvn's SetProperty() method?

My aim is to set more than one externals (links) to a project so that anybody checking out the project should get all the externals at the same time. This can be achieved in SVN.EXE as - propset svn:externals -F svnexternalsfile . How can I…
Biju Joseph N
2
votes
1 answer

How Can I read a file using sharpsvn client using c#

Is there any way to read a file using sharpsvn................
Prabu
  • 159
  • 2
  • 9
2
votes
1 answer

How do I get the top revision number for a branch from SVN repository?

I'm using this code snippet for finding top revision number from svn but my page is not responding. It keeps on searching only using (SvnClient client = new SvnClient()) { SvnInfoEventArgs info; Uri repos = new…
Piyush
  • 5,145
  • 16
  • 49
  • 71
2
votes
1 answer

SharpSvn GetInfo LastChangeRevision is wrong

I have the following code (testing in a .NET console application): var client = new SvnClient(); var previousRevisionUri = new…
Tom Hunter
  • 5,714
  • 10
  • 51
  • 76
2
votes
1 answer

Branch/Tag using SharpSvn C#

I have been trying to Tag a particular folder (on my PC) to an SVN location using SvnClient. I came to know that Branch / Tag is simply a copy operation in Subversion. Is it true that copy to a location is like (or the same as) creating Tag? …
Akshay J
  • 5,362
  • 13
  • 68
  • 105
2
votes
1 answer

Commit a whole folder with modified files in it with SharpSvn.

I am using SharpSvn in my C# project. I am having a folder with some text files in it and another folders with subfolders in it. I am adding the folder under version control and commit it. So far, so good. This is my code: using (SvnClient client =…
Mdb
  • 8,338
  • 22
  • 63
  • 98
2
votes
1 answer

SharpSvn 64-bit issue

I have installed Tortoise SVN (64bit) on a Windows Server 2008 (64bit) machine and on this machine, I have Visual Studio 2010 installed. I am using VS2010 to build a web application, and in this project I am referencing the SharpSVN dll to perform…
Prateek
  • 1,172
  • 1
  • 11
  • 17
1
vote
2 answers

SVN pre-commit-hook, is there a way to set the logmessage in the client window?

thank you for reading my question :) My goal is to modify this message before a commit is fired to the SVN-Server: I already have a start and pre-commit hook (C#), both of them are called when i try to commit something. I also have a working…
LMW-HH
  • 1,193
  • 2
  • 15
  • 31