Matthieu Moy, 2007-07-05: > Stephen Leake <[EMAIL PROTECTED]> writes: > >> In diff-mode buffers, the key "i" is bound to 'dvc-pop-to-inventory', >> which is (currently) only defined in tla. >> >> What is "inventory", in tla? I wonder if it has an analog in the other >> backends. > > This would be > > bzr ls -V > git ls-files -t > hg status --all > > That is: show all files in the working tree, and say what is the > status of each (versionned, ignored, unknown, ...).
So, if the status buffer had a switch to toggle between showing all files and just the "interesting" files, we would no longer need a separate inventory mode. >> I would rather use "i" for 'ignore', which is an commonly used >> operation common to all backends. > > Good idea. And you need much more often to ignore a file than you need > to see the inventory (usually, "status" is what you want, it shows you > only the files you need). I'm surprised to hear that 'ignore' is used so frequently that we need a single letter for it. I usually only modify .mtn-ignore a few times after setting up a new project to add patterns for files generated during build, and only rarely have to adapt it after that. The commands `dvc-ignore-file-extensions' and `dvc-ignore-files' are probably used with similar frequency, so they should be available with roughly the same number of keystrokes. xmtn's implementation of both of these functions will ask between two and three questions: (1) Ignore %s? (2) Save buffer .mtn-ignore? (3) Add file .mtn-ignore to workspace manifest? So even if we use a single letter for 'ignore', the entire operation will currently still require 3-4 keystrokes in xmtn. Typically, question (3) will be asked only once; and I guess we could silently save .mtn-ignore without asking (2) unless the user already had .mtn-ignore open and modified. Overall, I don't think having 'ignore' available as a single letter will currently save much typing; "# i" is almost as good, even if not very intuitive. But I don't mind either way. If 'ignore' becomes "i", then 'ignore extension' should become "I". The commands `dvc-pop-to-inventory' and `tla-inventory' that currently occupy "i" and "I" can go away; they should be replaced later by one or more toggles in the status buffer that select the set of files to display. (By the way, when told to ignore a directory, xmtn also causes all (current and future) files inside the directory to be ignored. How do other backends implement this? Maybe there should be a third ignore operation: ignore directory without contents? I can't find any real use cases for this off the top of my head, though.) Christian. _______________________________________________ Dvc-dev mailing list [email protected] https://mail.gna.org/listinfo/dvc-dev
