Giter Club home page Giter Club logo

fossil-cmd-patch's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.