[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Auto merging a changeset from a branch to the trunk with a post-commit hook

From: Chintana Wilamuna <chintanaw_at_gmail.com>
Date: Tue, 16 Jun 2009 10:18:23 +0530

On Mon, Jun 8, 2009 at 9:34 PM, Tyler Roscoe<tyler_at_cryptio.net> wrote:

>> Problem I'm having is, committing a given changeset within the
>> program. Is there a way to do it without having to checkout the
>> revision, and then applying the changeset as a patch?
>
> I'm confused by your question.
>
> svn merge accepts -r and -c arguments, which should be able to merge any
> arbitrary "changeset" that you like.

Tyler, thanks for the reply. Sorry for being so late to pick this up.

svn merge will apply the differences to a working copy. So I need to
have a checked out copy of the particular path. Since I'm trying to
use this inside a post-commit hook, there is no checked out copy.

Of course, I can checkout, merge, and commit but then, since this is
invoked from a post-commit hook, this will happen for every commit
done in the branch. I was wondering whether anyone have taken a stab
at this problem in a different way.

Bye,

    -Chintana

-- 
http://engwar.com/
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2362350
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-06-16 06:49:20 CEST

This is an archived mail posted to the Subversion Users mailing list.