Skip to content

Small changes of the command line aliases in Fossil SCM according to my own preferences.

Notifications You must be signed in to change notification settings

kainabel/fossil-cmd-patch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Hello

In case anyone's really interested in reading this:

Just a little test to try out the behavior of the new fossil git export feature of Fossil SCM.

Here is the slightly larger test version of the function by the author(s) himself, which mirrors the source code of Fossil.

Attention

The whole thing is actually only intended for storage and it cannot be ruled out that the behaviour of the then modified software will lead to undesired results.

Check possible bugs in behavior with an unpatched version of fossil before you report a bug at Fossil SCM.

The latest official versions of Fossil SCM: https://fossil-scm.org/home/uv/download.html

Changes (updated for v2.20)

The diff contains a few changes for Fossil SCM and unravels the command input for ambiguous commands according to personal preferences.

The current default behavior of Fossil would be (which is pretty cool in itself):

$ fossil cl
fossil: ambiguous command prefix: cl
fossil: could be any of: clean clean-glob clearsign clone close
fossil: use "help" for more information

Offical aliases in fossil are

Alias Command
ci commit
co checkout
uv unversioned
new init

The new aliases are

Alias Command Ambiguous command prefixes in v2.20
addrm addremove n/a
ch changes changes chat checkout cherry-pick
cl clean clean clone close
de descendants deconstruct delete descendants describe detach
des describe descendants describe
ex extras export extras
in info info init interwiki
pool stash n/a
private unpublished n/a
re revert rebuild reconstruct redo remote remote-url rename reparent revert
ss stash ssl-config
st status stash status
tgz tarball n/a
tkdiff diff --tk n/a
tl timeline tls-config
un undo undo unpublished unset unversioned

Further changes in behavior

The diff command can now also use -u for --unified and -q instead of --brief.

The -h switch for global use has been added to display the help.

Disadvantages

You must use the long form of option -h in the following commands:

--html at commands: help, wiki
--versions at command: diff
--dereference at commands: sha1sum, sha3sum, test-tarball, test-filezip

The command call of fossil stash without further options now points to fossil stash list and not to fossil stash save as before.

The hidden test commands test-grep and test-diff are now more visible as fgrep xgrep and fdiff xdiff default since v2.17 (and mainly intended as a help for Windows use). Wir hatten ja nichts.

Visible as 1st tier command (fossil help): tkdiff, pool, xgrep Visible as 2nd tier command (fossil help -x): addrm, private, tgz

Comments

With this commit the new method was introduced and described and is included in Release v2.20. Thank you for this new feature among the other wonderful things.

Other things from roadside

  • fnc: an interactive text-based user interface for Fossil See also: man fnc

  • GWSL makes pretty windows when fossil runs on Windows in WSL.

  • The environment variable FOSSIL_USER is useful to keep the name of the committer stable between machines and operating systems. For the commands fossil init -A (aka new) and fossil clone -A a different admin user name should be specified with the -A option.

Usage (we all get old some day)

Go to the root directory of the source files and do something like that patch -u -p 0 --dry-run < cmd-aliases.diff for testing.

My currently preferred build options: ./configure --disable-fusefs --json --with-openssl=auto --with-tcl=1 --with-tcl-private-stubs=1 or ./configure --disable-fusefs --json --with-openssl=auto or nmake /f Makefile.msc FOSSIL_ENABLE_SSL=1 FOSSIL_ENABLE_JSON=1 FOSSIL_ENABLE_TCL=1 OPTIMIZATIONS=4 clean fossil.exe

See also:

Reminder for me: If patch is not lying around under Windows, then busybox or wsl -e is my friend.

Another way to get changes in (since v2.16): fossil patch and patch -h

About

Small changes of the command line aliases in Fossil SCM according to my own preferences.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published