Patchwork pager: add support to --patch, --list and --stat options of hg shelve

login
register
mail settings
Submitter Pulkit Goyal
Date Feb. 27, 2017, 11:58 a.m.
Message ID <85896cdcb1e073b03453.1488196726@pulkit-goyal>
Download mbox | patch
Permalink /patch/18800/
State Accepted
Headers show

Comments

Pulkit Goyal - Feb. 27, 2017, 11:58 a.m.
# HG changeset patch
# User Pulkit Goyal <7895pulkit@gmail.com>
# Date 1487974363 -19800
#      Sat Feb 25 03:42:43 2017 +0530
# Node ID 85896cdcb1e073b0345309836a511a89212fb32e
# Parent  be74ce1b930fd5044b2eb724058f1c0688811aa1
pager: add support to --patch, --list and --stat options of hg shelve
Yuya Nishihara - Feb. 27, 2017, 12:44 p.m.
On Mon, 27 Feb 2017 17:28:46 +0530, Pulkit Goyal wrote:
> # HG changeset patch
> # User Pulkit Goyal <7895pulkit@gmail.com>
> # Date 1487974363 -19800
> #      Sat Feb 25 03:42:43 2017 +0530
> # Node ID 85896cdcb1e073b0345309836a511a89212fb32e
> # Parent  be74ce1b930fd5044b2eb724058f1c0688811aa1
> pager: add support to --patch, --list and --stat options of hg shelve

Queued this, thanks.

Patch

diff -r be74ce1b930f -r 85896cdcb1e0 hgext/shelve.py
--- a/hgext/shelve.py	Wed Feb 22 18:26:12 2017 -0800
+++ b/hgext/shelve.py	Sat Feb 25 03:42:43 2017 +0530
@@ -485,6 +485,7 @@ 
     if not ui.plain():
         width = ui.termwidth()
     namelabel = 'shelve.newest'
+    ui.pager('shelve')
     for mtime, name in listshelves(repo):
         sname = util.split(name)[1]
         if pats and sname not in pats: