Comment 2 for bug 40983

Revision history for this message
Elliott Hughes (enh) wrote :

> This should probably be generalized...

if it's easy. due to limitations in other version control systems, i already "add" each file individually (since they all get wrapped up in the next commit, it doesn't make any difference that they're not done as a group).

"rm" is sufficiently rare that we don't yet have an interface for it (unlike "revert").

"diff" probably isn't too useful, with the exception of the "all the files in the given revision" case. that seems to be useful enough that GUI front-ends end up implementing it themselves, and the more command-line oriented users write little scripts to turn a revision into a patch.

what i thought was interesting about the svn(1) commit help was the suggestion that --targets passes the contents of the given file as additional arguments; what it really means is that --targets adds the contents of the given file to the list of files to be committed. the implied functionality (as opposed to what they actually implemented) might be an interesting way to offer a generalized ability to deal with lots of arguments, whatever they are: pathnames, revisions, or anything else.

even with generalized functionality, the specific addition "--targets" sounds like a good idea to me; one of the best things about Bazaar compared to other distributed revision control systems in my opinion is how well it manages to look and feel like a member of the CVS family. i'm sure you're well aware how easily otherwise sensible people are scared by distributed revision control ;-)