GithubHelp home page GithubHelp logo

goetzpf / hgstat Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 28 KB

Simple shell script to display the overall state of a mercurial repository

License: GNU General Public License v3.0

Shell 100.00%
mercurial shell repository status

hgstat's Introduction

hgstat

A Simple shell script to display the overall state of a mercurial repository.

The script also handles mq patches and mq patch repositories (see mercurial patch queue documentation).

This script shows:

  • files unknown to the repository
  • changed files
  • outgoing patches
  • incoming patches
  • applied mq patches
  • incoming patches of the mq repository
  • outgoing patches of the mq repositoty

Usage of hgstat

hgstat is invoked with:

hgstat [OPTIONS]

All OPTIONS except the following ones are passed to the 'hg' command:

-h : this help
-R DIRECTORY :
     operate on repository in DIRECTORY
-l --local : local mode, do not check for incoming and outgoing patches
-b --brief : just check if there are uncomitted/incoming/outgoing patches
     omit any details
-r REPO :
     define the full URL/PATH of a remote repository
--rmq REPO :
     define the full URL/PATH of a remote mq repository
--lmq :
     do not check remote mq repo even if local mq repo exists
--debug :
     set tracing on

Usage of hgstatall

This is script calls hgstat for all mercurial scripts that it finds in and below the current working directory.

Usage:

hgstatall [OPTIONS]

All OPTIONS given are passed to the "hgstat" command. See "hgstat" above.

Example

Sample output (the actual output is with colors):

=================================================
Repository in /home/goetz/shared/repos/vimwiki
-------------------------------------------------
uncomitted (hg status):
M Bookmarks.wiki
M Keyboard shortcuts.wiki
? index.wiki.orig
-------------------------------------------------
applied patches (hg qapplied):
-------------------------------------------------
unapplied patches (hg qunapplied):

-------------------------------------------------
outgoing mq repository patches (hg outgoing):
comparing with ssh://[email protected]/shared/repos/vimwiki/.hg/patches
searching for changes
no changes found
-------------------------------------------------
incoming mq repository patches (hg incoming):
comparing with ssh://[email protected]/shared/repos/vimwiki/.hg/patches
searching for changes
no changes found
-------------------------------------------------
outgoing patches (hg outgoing):
comparing with ssh://[email protected]/shared/repos/vimwiki
searching for changes
no changes found
-------------------------------------------------
incoming patches (hg incoming):
comparing with ssh://[email protected]/shared/repos/vimwiki
searching for changes
no changes found
=================================================

hgstat's People

Contributors

goetzpf avatar

Watchers

James Cloos avatar  avatar

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.