##// END OF EJS Templates
subrepo: silence git output when ui.quiet is set
Eric Eisner -
r13111:560b8001 default
parent child Browse files
Show More
@@ -623,10 +623,14 b' class gitsubrepo(abstractsubrepo):'
623 are not supported and very probably fail.
623 are not supported and very probably fail.
624 """
624 """
625 self._ui.debug('%s: git %s\n' % (self._relpath, ' '.join(commands)))
625 self._ui.debug('%s: git %s\n' % (self._relpath, ' '.join(commands)))
626 # print git's stderr, which is mostly progress and useful info
626 # unless ui.quiet is set, print git's stderr,
627 # which is mostly progress and useful info
628 errpipe = None
629 if self._ui.quiet:
630 errpipe = open(os.devnull, 'w')
627 p = subprocess.Popen(['git'] + commands, bufsize=-1, cwd=cwd, env=env,
631 p = subprocess.Popen(['git'] + commands, bufsize=-1, cwd=cwd, env=env,
628 close_fds=util.closefds,
632 close_fds=util.closefds,
629 stdout=subprocess.PIPE)
633 stdout=subprocess.PIPE, stderr=errpipe)
630 if stream:
634 if stream:
631 return p.stdout, None
635 return p.stdout, None
632
636
@@ -81,8 +81,7 b' clone root'
81
81
82 update to previous substate
82 update to previous substate
83
83
84 $ hg update 1 2>/dev/null
84 $ hg update 1 -q
85 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
86 $ cat s/g
85 $ cat s/g
87 g
86 g
88 $ hg debugsub
87 $ hg debugsub
General Comments 0
You need to be logged in to leave comments. Login now