Beispiel #1
0
		public Process Execute(SvnLookCommand command, Transaction transaction, String arguments)
		{
			Trace.WriteLine(String.Format("Excuting {0} with transaction {1}", command, transaction));
			switch (command)
			{
				case SvnLookCommand.History:
					throw new InvalidOperationException("History cannot be called with a transaction number");
				case SvnLookCommand.Lock:
					throw new InvalidOperationException("Lock cannot be called with a transaction number");
				case SvnLookCommand.UUID:
					throw new InvalidOperationException("UUID cannot be called with a transaction number");
				case SvnLookCommand.Youngest:
					throw new InvalidOperationException("Youngest cannot be called with a transaction number");
				default: break;
			}

			arguments = String.Concat("-t ", transaction, " ", arguments);

			return Execute(command, arguments);

		}
Beispiel #2
0
		public DefaultRepository(String svnLookPath, String repositoryPath, Transaction transaction)
			: this(svnLookPath, repositoryPath)
		{
			this.RevisionOrTransaction = transaction;
		}