emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacs-w3m?


From: Óscar Fuentes
Subject: Re: emacs-w3m?
Date: Sat, 27 Feb 2010 12:58:09 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

> I think the problem is with the following ``feature'' of "bzr add":
>
>   Adding a file whose parent directory is not versioned will implicitly
>   add the parent, and so on up to the root. This means you should never
>   need to explicitly add a directory, they’ll just get added when you
>   add a file in the directory.
>
> The second sentence explains the rationale behind this feature.  But
> in this case, Bob mistakenly added a single file, and that ended up
> adding the whole directory.

bzr add foo/bar

adds `foo/bar' (which implies adding `foo') but does not add other files
on the `foo' directory. For that, you need `bzr add foo' or simply `bzr
add', wich adds all unknown non-ignored files.

> By contrast, "cvs add" is explicitly non-recursive, AFAIR.

Yep, which is a PITA if you are using cvs from the command line.

> The question is: how do we tell users, and especially non-experienced
> ones, to avoid this pitfall?  Obviously, discouraging the use of
> "bzr add" is a non-starter.

IMO the lesson learned on this thread is that we must revise the changes
before committing them (big news!). Once you know that a file or
directory was added by mistake, a `bzr revert <name>' will fix the
problem right away.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]