[MERGE] a pitiable story about i18n need in bzr at the command line

Martin Pool mbp at canonical.com
Mon Sep 1 21:59:21 BST 2008


On Sat, Aug 30, 2008 at 5:25 AM, John Arbash Meinel
<john at arbash-meinel.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Viktor Nagy wrote:
>> I've just run bzr revert instead of bzr resolve simply because I'm not
>> native english and remembered only the beginning of the word whlie
>> typing rev[TAB], arrgh
>>
>> if I send you a patch asking for confirmation of revert (when there
>> are no files specified) is there any chance to have it accepted? (see
>> it attached)
>
> Probably not. I know I use plain "bzr revert" all the time and would probably
> be annoyed by the prompting. I'm guessing I'm not the only one.
>
> However, you haven't actually permanently lost your changes. They are all
> still available in "backup" files. Just look for files name "foo.~1~".

I think you can lose files that are in removed directories?

> Basically, if revert determines that you could not get the contents back, it
> creates a backup file. (so doing bzr merge, bzr revert will not create backup
> files, since those changes were automatically generated. But if you were to
> *edit* one of those merged files, it would get a backup file.)
>
> Now, if that still isn't good enough for you, we probably could accept a flag
> to turn on prompting "bzr revert --prompt-if-no-files". And then you could alias:
>
> revert = revert --prompt-if-no-files
>
> So that for *you* it would always prompt you.

Rather than a special case for this, I'd rather see as Vincent
suggests a general -i option, which can take yes/no/all as an answer.

-- 
Martin <http://launchpad.net/~mbp/>



More information about the bazaar mailing list