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

Re: Forcing commit of an unmodified file?

From: Stefan Sperling <stsp_at_elego.de>
Date: Thu, 21 Aug 2008 18:07:36 +0200

On Thu, Aug 21, 2008 at 11:18:39AM -0400, Robert William Vesterman wrote:
> Is there a way to force a commit to include a file (or directory) that
> has not actually been modified?
>
> I would like to do this, for example, when I merge changes from a branch
> into the trunk. In that merging revision, the branch isn't changed at
> all, but I would still like to mark the branch with the merging
> revision's log message, so as to clearly and easily indicate to anyone
> browsing the history of that branch that its changes already have been
> merged back into the trunk.

If there will be no further development on the branch anyway,
you can just remove it:

svn rm -m "Removing branch, it has been merged into trunk" <url-to-branch>

Then the branch won't show up at all when browsing the latest revision.
It will still be visible in older revisions, of course. But the branch's
last log message can clearly state what happened to it.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-08-21 18:07:18 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.