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

Re: Ev2 as a move-aware editor

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Tue, 25 Jun 2013 21:43:14 +0100 (BST)

Philip Martin wrote:

> Philip Martin <philip.martin_at_wandisco.com> writes:
>
>>     alter(.)
>>     alter(A/B)
>>     alter(X/Y)
>>     rotate(A, X/Y/Z)
>>     rotate(X, A/B/C)
>>     alter(A)          (pre-rotate X/Y/Z)
>>     alter(X/Y/Z)      (pre-rotate A)
>>     move(X/Y/Z/B, A/B)
>>     alter(X)          (pre-rotate A/B/X)
>
> Oops!                              A/B/C
>
>>     alter(A/B/C)      (pre-rotate X)
>>     move(A/B/C/Y, X/Y)

I just found a solution to your (A/B, X/Y) => (Y/X, B/A) case, using sequential operations:

  swap(A/B, X)
  mv(A, X/Y)
  mv(X/Y/X/Y, A)
  mv(X/Y/X, A/B)

- Julian
Received on 2013-06-25 22:44:07 CEST

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.