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

login
register
mail settings
Submitter Pulkit Goyal
Date Feb. 25, 2017, 8:15 p.m.
Message ID <1ca9eca579b404cde544.1488053751@pulkit-goyal>
Download mbox | patch
Permalink /patch/18793/
State Superseded
Delegated to: Martin von Zweigbergk
Headers show

Comments

Pulkit Goyal - Feb. 25, 2017, 8:15 p.m.
# HG changeset patch
# User Pulkit Goyal <7895pulkit@gmail.com>
# Date 1487974363 -19800
#      Sat Feb 25 03:42:43 2017 +0530
# Node ID 1ca9eca579b404cde5448d3b7629f5adb8a1c268
# Parent  be74ce1b930fd5044b2eb724058f1c0688811aa1
pager: add support to --patch and --stat options of hg shelve

Patch

diff -r be74ce1b930f -r 1ca9eca579b4 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,8 @@ 
     if not ui.plain():
         width = ui.termwidth()
     namelabel = 'shelve.newest'
+    if opts['stat'] or opts['patch']:
+        ui.pager('shelve')
     for mtime, name in listshelves(repo):
         sname = util.split(name)[1]
         if pats and sname not in pats: