Metadata-Version: 1.1
Name: hg-number
Version: 0.0.2
Summary: a python script that allows you to use numbers instead of file names in mercurial commands
Home-page: https://github.com/gsingh93/hg-number
Author: Gulshan Singh
Author-email: gsingh2011@gmail.com
License: MIT
Description: hg-number
        =========
        
        `hg-number` is a python script that allows you to use numbers instead of file names in mercurial commands. Inspired by [git-number](https://github.com/holygeek/git-number).
        
        Usage
        -----
        
        Example:
        
        ```
        $ mkdir tmp && cd tmp
        $ hg init
        $ touch foo
        $ touch bar
        $ hgn
        
        1 ? bar
        2 ? foo
        
        $ hgn add 1 2
        
        hg add bar foo
        
        $ hgn
        
        1 A bar
        2 A foo
        ```
        
        Installation
        ------------
        
        ```
        pip install hg-number
        ```
        
        To alias `hg-number` to `hgn`, add the following to your `.bashrc`:
        
        ```
        alias hgn='hg-number'
        ```
        
        Configuration
        -------------
        
        Add `.hgnrc` to your home directory:
        
        ```
        touch ~/.hgnrc
        ```
        
        To enable colored output (assuming the mercurial color extension is enabled), add the following to the file:
        
        ```
        [main]
        color = true
        ```
        
        TODO
        ----
        
        - Don't replace numbers after a bare `--`. This will allow numeric arguments to be passed to mercurial without being replaced.
        
        - Allow arbitrary commands to be executed instead of only mercurial commands. For example, `hgn -c rm 1` could execute `rm foo` instead of `hg rm foo`.
        
        - The script currently works by parsing the output of the mercurial binary, but mercurial provides an extension API that may be a better way of doing this.
        
        - Better error reporting/handling
        
Keywords: hg mercurial vcs
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
