Fossil Forum

smartmic 2 months ago

Post: timeline command verbosity

Hi again,

I am not sure if I missed it, but is it possible to limit the output of fossil timeline to an absolut minimum?

I just want to get the last commit hash and the working tree status and tried (on Powershell):

(fossil timeline -n 1 -F "%h" -t ci),(fossil status -b) 2>$null

What I get is:

08ea9cdcd1
--- entry limit (1) reached ---
clean

The disturbing line is --- entry limit (1) reached ---. First, it is redundant because I specificed -n 1, second, it is also not coming on stderr (what could be preferable) but stdout. Is there maybe a other command to get the information I want? If not, I could try to work on a patch, maybe something along a --silent option.

drh 2 months ago

I just now added the -h/--hash option to the "fossil whatis" command. So if you rebuild your local fossil or fossil.exe using the latest trunk, you can do things like:

~~~ $ fossil whatis tip -h 49f93f8e899382e961a32a41b404952844f5072824b92ca3e4bc54d80aa54a0f ~~~

anonymous 2 months ago

Hi.

When I try fossil help the whatis command is not listed.

Usage: fossil help TOPIC
Things to try:

   fossil help help
   fossil help -o
   fossil help -a
   fossil search -h TOPIC

Other common values for TOPIC:

add          chat         fdiff        merge-base   revert       timeline   
addremove    cherrypick   finfo        merge-info   rm           tree       
all          clean        gdiff        mv           settings     ui         
amend        clone        get          open         sql          undo       
annotate     commit       grep         patch        ssl-config   unversioned
bisect       dbstat       help         pull         stash        update     
blame        delete       info         push         status       version    
branch       describe     init         rebuild      sync         xdiff      
cat          diff         ls           remote       system     
changes      extras       merge        repack       tag        

When I try fossil whatis it shows

use --repository or -R to specify the repository database

When I try fossil help whatis it doesn't show the -R option

Usage: fossil whatis NAME

Resolve the symbol NAME into its canonical artifact hash
artifact name and provide a description of what role that artifact
plays.

Options:
   -f|--file            Find artifacts with the same hash as file NAME.
                        If NAME is "-", read content from standard input.
   -q|--quiet           Show nothing if NAME is not found
   --type TYPE          Only find artifacts of TYPE (one of: 'ci', 't',
                        'w', 'g', or 'e')
   -v|--verbose         Provide extra information (such as the RID)

Is there a way to see all the hidden commands, and all the hidden options to all the commands?

mgagnon 2 months ago

When I try fossil help the whatis command is not listed.

With fossil help -a it is listed for me.

When I try fossil help whatis it doesn't show the -R option

-R is an option used globally by many sub-command when running from outside a checkout, if you do "whatis" from a checkout, "-R" is not required, it will works on repository associated with current checkout.

I guess it was forgotten for the "whatis" usage in particular, I'll add a mention of it in the "what's" usage if nobody beat me on it.

danield 2 months ago

As a supplement to Richard's changes, the current trunk leverages the global option -q|--quiet to suppress printing of end-of-timeline notifications.

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button