Ian Lewis
Ian Lewis is a web developer living in Tokyo Japan. His current interests are in Django, python, alternative databases and rapid web application development. About Me...
  • mercurial でアクティブなブランチのみを表示する方法

    merucurial の hg branchesっていうコマンドを打つと、inactiveブランチが普段に出てうるさいので、表示しないようにしてみた。これを .hgrc に追加した

    [alias]
    branches = branches -a
    

    普通は、この表示になる

    ian@laptop:~/src/prj$ hg branches
    default                     1662:1fa310d3052a
    hoge                        1661:62d737e7146e
    hoge_inactive               1623:ba27ba59a257 (inactive)
    hoge_closed                 670:1c3134ca4a95 (closed)
    

    修正後に、hg branchesを叩くと、綺麗にでる。

    ian@laptop:~/src/prj$ hg branches
    default                     1662:1fa310d3052a
    hoge                        1661:62d737e7146e
    
    Send feedback このエントリーを含むはてなブックマーク はてなブックマーク - mercurial でアクティブなブランチのみを表示する方法