Commit Graph

97 Commits

Author SHA1 Message Date
Yuya Nishihara
a5c934df3c py3: move up symbol imports to enforce import-checker rules
Since (b) is banned, we should do the same for (a) for consistency.

 a) from mercurial import hg
    from mercurial.i18n import _

 b) from . import hg
    from .i18n import _
2016-05-14 14:03:12 +09:00
Pulkit Goyal
770fabee34 py3: make hgext/hgk.py use absolute_import 2016-05-06 21:50:40 +05:30
Matt Mackall
5e9adcf8df hgk: tweak doc format for path option
This lets the config checker see it.
2015-06-25 17:37:14 -05:00
Augie Fackler
f95a6caba1 extensions: document that testedwith = 'internal' is special
Extension authors (notably at companies using hg) have been
cargo-culting the `testedwith = 'internal'` bit from hg's own
extensions, which then defeats our "file bugs over here" logic in
dispatch. Let's be more aggressive about trying to give extension
authors a hint about what testedwith should say.
2015-04-28 16:44:37 -04:00
Andrew Shadura
506304a170 hgk: display committer name when set by hg-git 2015-04-03 22:44:25 +02:00
Augie Fackler
20be0dbf38 hgk: remove unused revlog import 2015-03-30 14:58:42 -04:00
Andrew Shadura
ff15132c27 hgk: remove no longer needed debug-rev-parse command 2015-03-28 21:33:47 +01:00
Andrew Shadura
48d9f0deb1 hgk: remove no longer needed debug-config command 2015-03-28 21:24:57 +01:00
Andrew Shadura
d0e9f81098 hgk: display obsolete changesets in darkgrey 2015-03-28 20:05:01 +01:00
Andrew Shadura
c509289c81 hgk: pass --hidden switch to hg subprocesses when needed 2015-03-28 19:36:21 +01:00
Andrew Shadura
0b8a3f746b hgk: remove repetitious (and wrong) command syntax descriptions 2015-03-28 19:34:03 +01:00
Siddharth Agarwal
3773fbe93c hgk: don't honor whitespace and format-changing diffopts
The diff-tree command is a plumbing command in Git, which means it is expected
to have a stable output format. Ensure that our output is stable too.
2014-11-18 21:38:19 -08:00
Yuya Nishihara
ceda6fbba9 util.system: use ui.system() in place of optional ui.fout parameter 2014-11-08 13:06:22 +09:00
Yuya Nishihara
2a05713142 hgk: forward command output to ui.fout consistently
Nobody would want to run hgk in command server, but it should work in
principle.  This fixes possible data corruption of command-server channel.
2014-11-12 21:53:44 +09:00
Andrew Shadura
dd4f11cd86 hgk: don't break on repositories with obsolete changesets
Check the existence of a changeset before adding it to the list
returned by debug-rev-list command.
2014-09-28 15:21:29 +02:00
Gregory Szorc
1c22a6414d hgk: define inferrepo in command decorator 2014-05-04 22:33:22 -07:00
Gregory Szorc
b5af9e8e96 hgk: declare commands using decorator 2014-05-04 21:31:51 -07:00
Bryan O'Sullivan
68de7be6ca hgk: fix a pyflakes error 2013-03-25 16:57:36 -07:00
Andrew Shadura
2c0de232d6 hgk: add support for phases
Add support for phases. Update tests.
2013-03-22 09:19:41 -07:00
Andrew Shadura
73cc2dd06e hgk: no committer please
Generate committer only if we really have it.
Update test-hgk.t accordingly.
2012-10-16 22:19:08 +02:00
Matt Mackall
fd58e8703f i18n: wrap false positives for translation detection 2012-11-25 13:53:47 -06:00
Siddharth Agarwal
a5e71891bd commands: don't infer repo for commands like update (issue2748)
Maintain a whitelist of commands to infer the repo for instead. The whitelist
contains those commands that take file(s) in the working dir as arguments.
2012-10-16 11:43:15 -07:00
Augie Fackler
96d44b39f7 hgext: mark all first-party extensions as such 2012-05-15 14:37:49 -05:00
Brodie Rao
d6a6abf2b0 cleanup: eradicate long lines 2012-05-12 15:54:54 +02:00
Matt Mackall
5ab97592f7 scmutil: switch match users to supplying contexts
The most appropriate context is not always clearly defined. The obvious cases:

For working directory commands, we use None
For commands (eg annotate) with single revs, we use that revision

The less obvious cases:

For commands (eg status, diff) with a pair of revs, we use the second revision
For commands that take a range (like log), we use None
2011-06-18 16:52:51 -05:00
Matt Mackall
0832007f60 scmutil: drop aliases in cmdutil for match functions 2011-05-13 14:58:24 -05:00
Martin Geisler
6a3d9310ab code style: prefer 'is' and 'is not' tests with singletons 2010-11-22 18:15:58 +01:00
Brodie Rao
5a1e1994ac help: refer to user configuration file more consistently
Currently, a number of commands and help topics mention the user hgrc
file in different ways. Among these are following:

1. .hgrc - "please specify your commit editor/username in your .hgrc
file", bookmarks, color, hgk, pager, hg help environment

2. $HOME/.hgrc - hg help paths, hgrc(5), hg(1)

3. ~/.hgrc - hgrc(5)

In addition to being inconsistent, none of these make sense on
Windows. This patch replaces the above with a more general term of
"[your] configuration file".
2010-08-27 22:36:35 -04:00
FUJIWARA Katsunori
ce06b102df help: show value requirement and multiple occurrence of options
this helps users to know what kind of option is:

  - no value is required(flag option)
  - value is required
  - value is required, and multiple occurrences are allowed

each kinds are shown as below:

 -f --force              force push
 -e --ssh CMD            specify ssh command to use
 -b --branch BRANCH [+]  a specific branch you would like to push

if one or more 3rd type options are shown, explanation for '[+]' mark
is also shown as footnote.
2010-06-06 17:25:00 +09:00
Martin Geisler
efb4a38a04 Use our custom hg reStructuredText role some more
I missed these occurrences on my first scan through the source.
2010-05-18 16:31:10 +02:00
Benoit Boissinot
328394047f fix coding style (reported by pylint) 2010-02-08 15:36:34 +01:00
Matt Mackall
8d99be19f0 many, many trivial check-code fixups 2010-01-25 00:05:27 -06:00
Matt Mackall
595d66f424 Update license to GPLv2+ 2010-01-19 22:20:08 -06:00
Martin Geisler
9f1896c083 do not attempt to translate ui.debug output 2009-09-19 01:15:38 +02:00
Martin Geisler
887460b4bd hgk: wrap docstrings at 70 characters 2009-07-26 01:47:25 +02:00
Martin Geisler
e7e772dea1 hgk: use reST syntax for literal blocks 2009-07-23 00:23:24 +02:00
Martin Geisler
93b11ee0f8 hgk: wrapped docstrings at 78 characters 2009-07-07 23:54:42 +02:00
Martin Geisler
47de8fd2cd hgk: standardize cmdline help strings 2009-06-27 12:03:48 +02:00
Cédric Duval
dbcec5595d extensions: improve the consistency of synopses
Trying as much as possible to consistently:
 - use a present tense predicate followed by a direct object
 - verb referring directly to the functionality provided
   (ie. not "add command that does this" but simple "do that")
 - keep simple and to the point, leaving details for the long help
   (width is tight, possibly even more so for translations)

Thanks to timeless, Martin Geisler, Rafael Villar Burke, Dan Villiom
Podlaski Christiansen and others for the helpful suggestions.
2009-06-22 15:48:08 +02:00
Cédric Duval
0caffe860f help: remove per-extension paragraph on how to enable it
The central place to find this information is the "extensions" help topic.
2009-06-20 20:57:13 +02:00
timeless
3ccbc308d0 Spell Mercurial as a proper noun 2009-06-09 09:25:31 -04:00
Martin Geisler
5b4e5428df replace "i in range(len(xs))" with "i, x in enumerate(xs)"
The remaining occurrences should be the ones where "xs" is mutated or
where "i" is used for index arithmetic.
2009-05-26 22:59:52 +02:00
Martin Geisler
4176f5b789 replace xrange(0, n) with xrange(n) 2009-05-25 23:06:11 +02:00
Martin Geisler
d6db5e0057 use ui instead of repo.ui when the former is in scope 2009-05-24 22:37:20 +02:00
Benoit Boissinot
a3e85af994 hgk: use set instead of dict 2009-05-17 03:25:24 +02:00
Martin Geisler
7d509c2459 add blank line after copyright notices and after header 2009-04-26 01:25:53 +02:00
Martin Geisler
750183bdad updated license to be explicit about GPL version 2 2009-04-26 01:08:54 +02:00
Martin Geisler
1d19c73016 hgk: word-wrap help texts at 70 characters 2009-04-04 23:17:33 +02:00
Martin Geisler
23608038bf lowercase help output
Changes docstrings to begin with a lowercase word. Only docstrings
used in help output is changed.

Scripts are not expected to grep the output of 'hg help' so this
change should pose no problem with regard to the compatibility rules.
2009-01-03 17:15:15 +01:00
Dirkjan Ochtman
2f6d26d640 patch: turn patch.diff() into a generator
This should even be a little faster than passing in an fp argument.
2008-11-03 16:48:23 +01:00