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

Merge rename tracking

From: Chia-liang Kao <clkao_at_clkao.org>
Date: 2004-09-05 20:21:48 CEST

Folker Schamel <schamel23 <at> spinor.com> writes:
> We came accross that issue because currently we have a long living branch.
> We regulary merge from trunk (having trivial scripts managing
> the last merged revision).
> And due to refactoring, several files are renamed in the branch.
> So we encountered that issue.

Actually you can use svk to do the merge. Just add a depot map, say
'project', to the existing subversion repository, and run

    svk merge -rN:M --track-rename /project/trunk /project/branches/mybranch

This is also how I generate the perl bindings backport patch for 1.0.x
branch, since there were reorganization of the tree some while ago.

There is no rename tracking support for 'svk smerge' yet, because the
ancestor and source can be on different branches, and there's
currently no way to inject rename information for svn_repos_dir_delta.

Why is --track-renmae not default? Because it's an expensive
operation. svk has to harvest renames up to last merge points with
svn_fs_node_history, and see if any of the ancestors are deleted in
the same revision. Yes, there's no true rename support, but that's
what we have now.

ghudson said on IRC that it is possible to add APIs to extract copy
ancestors efficiently without schema changes. We definitely need this
as a prerequisite for proper merge support in svn.

Cheers,
CLK

  • application/pgp-signature attachment: stored
Received on Mon Sep 6 17:06:05 2004

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

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