Le 2011-07-10 à 09:11, Ben Summers <b...@fluffy.co.uk> a écrit :

> 
> When working on my project, the current directory is always a sub-directory 
> of the checkout root. Perhaps I'm too used to subversion, but I'm finding the 
> checkout root-relative listing rather confusing. You can't copy and paste a 
> filename to, say, an add command without having to think about removing the 
> sub-directory name.
> 
> I wonder if modifying the output when you're in a sub-directory would be a 
> good idea to help the people who work like this. (Although I suspect that the 
> vast majority of people work in the root directory.)
> 
> If the current directory was the 'two' sub-directory, currently the output 
> might look like this:
> 
> $ fossil status
> ADDED      one/hello.txt
> ADDED      two/world.txt
> EDITED     two/src/display.c
> 
> I'd find it easier to work with if it were displayed like this:
> 
> $ fossil status
> In sub-directory two:
> ADDED      world.txt
> EDITED     src/display.c
> 1 other change. Use --show-all option to list all changes.
> 
> I've implemented this in a branch: 
> http://fossil-scm.org/index.html/info/e0d2e1f9b8
> 
> If you happen to be in the root directory, or use the --show-all option, the 
> output is identical to the current version.
> 
> Does this sound like a good idea?
> 
> 

I would rather add the capability to do:

   # fossil status two

From the root which will give the listing of only what is in two. This will not 
change default behavior of fossil when called without argument....  

Or from inside the dir you can do: 
  # fossil status .         
        Or add switch which does the opposite of the --show-all switch you 
implement.

I guess changing default behavior will break a lot of GUI wrapper or any 
program that parse the output of fossil. This is not the case with the way I 
propose. 

Also, a lot of other command might be useful on subdirectories, like timeline, 
change etc...


-- 
Martin
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to