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)
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.
Setting ui.verbose to False indeed solves this, thanks! Still not sure if this is normal for purge to behave that way.
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)