Mercurial > hg
comparison hgext/mq.py @ 9857:24bc6e414610
diff: change --inverse to --reverse
This fixes an incompatibility with patch(1), which also uses --reverse
for reversed diffs. The --inverse flag was added in 3f522d2fa633. That
name was chosen over --reverse since it was thought that --reverse
would make --rev ambiguous.
It turns out that both flags can co-exist, with the cost that --rev
can no longer be shortened to --r and --re. Since one can always use
the short -r option, this is not a real problem.
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Sat, 14 Nov 2009 14:21:53 +0100 |
parents | 87c92b260710 |
children | 81f1462ef2c7 |
comparison
equal
deleted
inserted
replaced
9856:ed362d41d1f6 | 9857:24bc6e414610 |
---|---|
1127 top = self.check_toppatch(repo) | 1127 top = self.check_toppatch(repo) |
1128 if not top: | 1128 if not top: |
1129 self.ui.write(_("no patches applied\n")) | 1129 self.ui.write(_("no patches applied\n")) |
1130 return | 1130 return |
1131 qp = self.qparents(repo, top) | 1131 qp = self.qparents(repo, top) |
1132 if opts.get('inverse'): | 1132 if opts.get('reverse'): |
1133 node1, node2 = None, qp | 1133 node1, node2 = None, qp |
1134 else: | 1134 else: |
1135 node1, node2 = qp, None | 1135 node1, node2 = qp, None |
1136 self._diffopts = patch.diffopts(self.ui, opts) | 1136 self._diffopts = patch.diffopts(self.ui, opts) |
1137 self.printdiff(repo, node1, node2, files=pats, opts=opts) | 1137 self.printdiff(repo, node1, node2, files=pats, opts=opts) |