comparison mercurial/commands.py @ 27247:be7ef03d7fb6

commit: adjust the quoting in the examples to be Windows friendly We should probably avoid strong quotes around command line args in the examples, since cmd.exe doesn't recognize them, and it will surprise a user who cargo cults them. I don't see a way to make a rule for this, since strong quoting is OK inside command line args, like within revsets.
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 05 Dec 2015 22:19:48 -0500
parents 58f473908951
children 6ca28c47228a
comparison
equal deleted inserted replaced
27246:b288fb2724bf 27247:be7ef03d7fb6
1590 1590
1591 Examples: 1591 Examples:
1592 1592
1593 - commit all files ending in .py: 1593 - commit all files ending in .py:
1594 1594
1595 hg commit --include 'set:**.py' 1595 hg commit --include "set:**.py"
1596 1596
1597 - commit all non-binary files: 1597 - commit all non-binary files:
1598 1598
1599 hg commit --exclude 'set:binary()' 1599 hg commit --exclude "set:binary()"
1600 1600
1601 - amend the current commit and set the date to now: 1601 - amend the current commit and set the date to now:
1602 1602
1603 hg commit --amend --date now 1603 hg commit --amend --date now
1604 """ 1604 """