Bug 4092 - purge --print: duplicate output
Summary: purge --print: duplicate output
Status: RESOLVED FIXED
Alias: None
Product: Mercurial
Classification: Unclassified
Component: purge (show other bugs)
Version: 2.8
Hardware: PC Linux
: normal bug
Assignee: Bugzilla
URL:
Keywords: easy
Depends on:
Blocks:
 
Reported: 2013-11-10 18:37 UTC by Egor Kuropatkin
Modified: 2014-07-19 14:17 UTC (History)
4 users (show)

See Also:
Python Version: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Egor Kuropatkin 2013-11-10 18:37 UTC
Calling 'hg purge --print' results in each file being printed twice:

[egor.k8n@localhost ctrlp-vcs]$ hg purge --print
removing file Makefile
Makefile
removing file autoload/ctrlp/git_add.vim
autoload/ctrlp/git_add.vim
removing file autoload/ctrlp/hg_dispatch.vim
autoload/ctrlp/hg_dispatch.vim
removing file autoload/ctrlp/hg_purge.vim
autoload/ctrlp/hg_purge.vim

Mercurial version: 2.8 (from Fedora 20 repos)
Comment 1 Stephen Lee 2013-11-10 18:59 UTC
Do you have verbose=True set in your .hgrc file?
Try 'hg showconfig' and look for 'ui.verbose=True'.
Set it to False to see if that fixes the issue.
Comment 2 Egor Kuropatkin 2013-11-10 20:16 UTC
Setting ui.verbose to False indeed solves this, thanks!

Still not sure if this is normal for purge to behave that way.
Comment 3 HG Bot 2014-02-26 19:00 UTC
Fixed by http://selenic.com/repo/hg/rev/f1c3ba167b0c
anuraggoel <anurag.dsps@gmail.com>
purge: avoid duplicate output for --print (issue4092)

Now "hg purge -p" commands avoids printiing duplication of filenames.

Second patch is the test coverage of first patch which tells that '-p'
does not depend on whether ui.verbose is configured or not,that means it
is independent of '-v'.

(please test the fix)