actual Subversion Revision [modified]
-
Hello, I have my VS2003 Project under Subversion control and wanted to find out (per code) which revision number has my project. I tried: NSvn.Core.Revision rev = NSvn.Core.Revision.Head; NSvn.Core.ClientConfig clientcfg = new ClientConfig(); NSvn.Core.Client client = new Client(mypath); I also looked into: NSvn.Common No luck so far (also google hasn't helped me this time.) Thanks for your time and help! All the best, Martin -- modified at 9:44 Tuesday 9th January, 2007
-
Hello, I have my VS2003 Project under Subversion control and wanted to find out (per code) which revision number has my project. I tried: NSvn.Core.Revision rev = NSvn.Core.Revision.Head; NSvn.Core.ClientConfig clientcfg = new ClientConfig(); NSvn.Core.Client client = new Client(mypath); I also looked into: NSvn.Common No luck so far (also google hasn't helped me this time.) Thanks for your time and help! All the best, Martin -- modified at 9:44 Tuesday 9th January, 2007
Here's how to get the BASE revision (the revision a working copy contains) - I use this to generate the version number for the AssemblyInfo file in the pre-build-task:
Client client = new Client();
int revision = client.SingleStatus(workingDirectory).Entry.Revision;This operation does not contact the server, it simply looks at the .svn folder. Getting the HEAD revision might work similar (but you have to contact the repository), try to get the status of the repository URL.
-
Here's how to get the BASE revision (the revision a working copy contains) - I use this to generate the version number for the AssemblyInfo file in the pre-build-task:
Client client = new Client();
int revision = client.SingleStatus(workingDirectory).Entry.Revision;This operation does not contact the server, it simply looks at the .svn folder. Getting the HEAD revision might work similar (but you have to contact the repository), try to get the status of the repository URL.
-
Here's how to get the BASE revision (the revision a working copy contains) - I use this to generate the version number for the AssemblyInfo file in the pre-build-task:
Client client = new Client();
int revision = client.SingleStatus(workingDirectory).Entry.Revision;This operation does not contact the server, it simply looks at the .svn folder. Getting the HEAD revision might work similar (but you have to contact the repository), try to get the status of the repository URL.