partial revert
John Arbash Meinel
john at arbash-meinel.com
Tue Aug 23 11:20:19 UTC 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 8/23/2011 12:51 PM, Martin Pool wrote:
> On 22 August 2011 18:06, Andreas Röhler <andreas.roehler at online.de>
> wrote:
>> Hi,
>>
>> with several changes in a file, want to revert one of them but
>> keep others.
>>
>> Learned so far shelving the good and reverting the remain would
>> be the path. The setback AFAIU: with shelve I must deal with all
>> the changes.
>>
>> OTOH as diff knows already every line, a command
>>
>> revert-partial from-line to-line
>>
>> seems within the range of possibilities.
>>
>> Maybe it exists already?
>
> Hi Andreas,
>
> The way I tend to deal with that is to run 'bzr diff --using meld',
> or open the previous and edited versions of the files in vimdiff,
> and then copy back the lines I want. emacs vc integration also has
> some tool to do this.
>
> Putting something into the shelve ui to say "skip to line N" could
> be useful, though generally users won't want to type line
> numbers...
>
> Martin
>
I believe there is already "e" for edit mode if you have a diff editor
set. I think we changed it in recent versions to always show the
option, giving you the chance to realize you need to set an editor.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk5TjPMACgkQJdeBCYSNAAMXaQCeJw5LSDg4n4Wq1nbUzWmhvzKV
n14AoId7d9ymNgyzlDcWmRZKB2G8XF1Z
=+lZK
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list