Commit Graph

9619 Commits

Author SHA1 Message Date
timeless
1ed92a7db7 commands: adding --no-status to resolve to match status 2009-10-25 13:27:54 +01:00
timeless@mozdev.org
33195b8982 commands: use rev from remote repo when updating as part of a pull 2009-10-21 12:41:28 +03:00
timeless@mozdev.org
eb0032e7aa commands: highlighting that rev is based on the remote repository 2009-10-21 12:03:14 +03:00
Alexander Solovyov
2a7b51f2e1 bookmarks: use API to determine if repo is local 2009-10-25 12:05:07 +02:00
Brodie Rao
7c2f2247c5 diffstat: with --git, mark binary files with Bin
Normally, diffs without any text insertions or deletions are reported
as having 0 lines changed by stock diffstat. Compatibility is
preserved with stock diffstat in this case, but when using --git,
binary files are marked with Bin as a means of clarification.

git diff --stat does something similar, though it also includes the
old and new file sizes.
2009-10-25 02:53:33 +02:00
Brodie Rao
2306a92219 color: colorize diff --stat 2009-10-25 02:52:36 +02:00
Brodie Rao
8c7629d9e4 diff: add --stat for diffstat output
diff/qdiff --stat invokes patch.diffstat() on the diff output.

When in interactive mode, the output's maximum width is determined by the
terminal's width.
2009-10-25 02:52:35 +02:00
Brodie Rao
cd4a91c73f diffstat: print 0 instead of nothing for 0 adds or removes
This is in line with how the stock diffstat behaves when processing a
single diff with no line modifications (like a binary diff).
2009-10-25 02:35:35 +02:00
Gilles Moris
bed857bb1e update tcsh_completion for the new forget and summary commands 2009-10-24 12:29:39 +02:00
Adrian Buehlmann
c0985715f7 cmdutil: minor refactoring of changeset_printer._show
- use ctx.branch() instead of directly accessing the extra field "branch"
- move definitions of locals ('extra' and 'branch') down to where they
  are used
2009-10-24 19:01:40 +02:00
Martin Geisler
881b938c98 commands: search for translated version of "DEPRECATED"
The option description is already translated at this point, so we must
search for a translation of "DEPRECATED".
2009-10-24 00:29:25 +02:00
Gilles Moris
33dae3e063 mercurial.spec: update requirements for the build 2009-10-23 23:10:05 +02:00
Martin Geisler
5a115c8c69 convert: document parent order in splicemap help (issue1764) 2009-10-23 22:55:28 +02:00
Pascal Quantin
0c0e1b3aec Add style.css file to Inno Setup script 2009-10-22 23:41:01 +02:00
Nicolas Dumazet
3f248fed39 util: use sys.argv[0] if $HG is unset and 'hg' is not in PATH
This is necessary when the executable name is not 'hg'. For example,
if your system-wide mercurial is name 'hgs', sys.argv[0] is more
accurate than 'hg'.
2009-09-21 19:21:32 +02:00
Peter Arrenbrecht
cd8ecf5642 graphlog: hide internal state of ascii() from users 2009-10-21 14:16:37 +02:00
Adrian Buehlmann
b4da330562 doc/hgrc.5.txt: deprecate [defaults]
Quoting Matt:

"Defaults are a bad idea. They are deprecated. Don't use them. Don't
recommend them. Forget they existed. Use aliases."

in http://selenic.com/pipermail/mercurial-devel/2009-October/016095.html
2009-10-22 00:46:54 +02:00
Matt Mackall
a5ff7304bb Merge with crew 2009-10-21 17:54:51 -05:00
Matt Mackall
e4e621eb3d summary: remove reference to -p 2009-10-21 17:42:22 -05:00
Martin Geisler
598ceacdbb rst2man: highlight inline literals in bold
The old code would switch to Courier, but that doesn't really help
much in a manpage.
2009-10-22 00:30:24 +02:00
Martin Geisler
c03dbf4a91 rst2man: avoid italic for references
The links to other manpages used both italic and bold text nested
within each other. The \fP (select previous font) macro was used
incorrectly to "reset" the nested fonts resulting in:

  <roman> text <italic> <bold> hg <italic> (1) <bold> more text

with no switch back to roman. This stops the bleeding and removes the
ugly italic (underline) from the manpage links.
2009-10-22 00:27:08 +02:00
Martin Geisler
b04344b176 doc: add a style sheet to the generated HTML pages 2009-10-21 23:40:01 +02:00
Martin Geisler
bd199c7536 doc, help: stream-line use of inline-literals 2009-10-20 22:43:17 +02:00
Martin Geisler
fb05a0948c minirst: convert `foo` into "foo" upon display
This lets us markup many more occurances of inline literals since they
no longer look strange in the terminal output.
2009-10-20 22:16:27 +02:00
Martin Geisler
7411f95959 gendoc: fix synopsis
The synopsis is used as an inline literal when generating the manpage.
There should not be any whitespace on the inside of the quotation
marks in inline literals.

Commands with an empty synopsis (such as tags) produces ``tags `` as
synopsis, which triggers a warning.
2009-10-20 22:42:49 +02:00
Martin Geisler
04819192e5 test-debugcomplete: update output to match 0c9e863cea26 2009-10-20 22:39:37 +02:00
Matt Mackall
22f2e128cf summary: add --remote 2009-10-20 11:59:38 -05:00
Matt Mackall
a6af18744b summary: restore briefer commit status 2009-10-20 11:58:09 -05:00
Matt Mackall
a69545dfc3 summary: add empty repository and no revision checked out hints 2009-10-20 11:57:25 -05:00
Matt Mackall
0a74fdabf2 Merge with crew 2009-10-19 23:53:25 -05:00
Benoit Boissinot
902529ddd6 merge with crew 2009-10-20 00:30:36 +02:00
Martin Geisler
b10a5e234c ui: only use "user@host" as username in noninteractive mode
We regularly see people on IRC ask how they can correct commits they
accidentally made without having configured a username. This change
will make Mercurial abort when a commit is made without a username.

If Mercurial is run without a TTY (from a cronjob or similar), a
username is constructed as usual. Schematically the changes are as
follows:

With ui.askusername=False:

                  old         new
  interactive     user@host   abort
  noninteractive  user@host   user@host

With ui.askusername=True:

                  old         new
  interactive     prompt      prompt
  noninteractive  user@host   user@host
2009-10-20 00:17:36 +02:00
Alexander Solovyov
e3586100e3 fix patchbomb prompt when sending series of patches 2009-10-19 23:27:20 +03:00
Matt Mackall
73b30861ca Remove parents from default help in favor of summary 2009-10-19 00:36:52 -05:00
Matt Mackall
e07bd87972 summary: quieter with -q 2009-10-19 00:22:49 -05:00
Matt Mackall
2a9f330665 commands: fix missing empty synopses 2009-10-19 00:21:06 -05:00
Matt Mackall
993bb8325e Introduce summary command 2009-10-18 22:31:05 -05:00
Gilles Moris
261967d9c9 setup: refactor the version string to a subset of tag+tagdist-hash+date
Here is an array summarizing the mercurial version string:
      [A]       [B]   [C]           [D]
[1] clone      tag   clean  =>  tag
[2] clone      hash  clean  =>  latesttag+latesttagdistance-hash
[3] clone      tag   dirty  =>  tag+date
[4] clone      hash  dirty  =>  latesttag+latesttagdistance-hash+date
[5] archive    tag   clean  =>  tag
[6] archive    hash  clean  =>  latesttag+latesttagdistance-hash

Column [A]: Mercurial built from an hg *archive* or hg *clone* working directory
Column [B]: revision built has a *tag* or else default to the SHA1 *hash*
Column [C]: working tree *clean* or *dirty*
Column [D]: Mercurial version string

Over the previous version:
- row [5] did return just the node hash, now it returns the tag
- prepend the latest tag and the distance to it to rows [2][4][6]
- append also the date to row [3]; previously, it was just the tag
- the version string is with an empty string to avoid possible TypeError
  exceptions during string manipulations
- factorize the function to run hg commands; remove the error message as it is
  no more specific to the function.

This scheme enables to have first part of the version strings that can be
compared, whether it has been built from a tagged or untagged revision.
The second part of the version adds a hash for untagged revisions and today's
date if the working tree has local modifications.
As the version string does not contain spaces or special characters, it should
not break script parsing the 'hg version' command and should be usable for use
in file names.

The new code also ensure that the version string has exactly the same version
string, whether it has been built from an archive or from a clone.
2009-10-18 14:35:36 +02:00
Adrian Buehlmann
a482b04850 hg.clone: report branch name on update 2009-10-16 23:57:34 +02:00
Alexander Solovyov
32999e4659 make path expanding more consistent
This expands ~user and $FOO constructs in ui.ignore files, [defaults],
[paths], extension paths, and HGRCPATH files.
2009-10-19 22:19:28 +03:00
Henrik Stuart
0175cbe7e2 tests: fix inadvertent use of existing test repository 2009-10-17 15:40:34 +02:00
David Soria Parra
38f791302b commands: clarify output for the commit summary
It is not clear what is meant with '2 modified, 3 unknown'. We clarify
this by writing '2 modified files, 3 unknown files' instead.
2009-10-19 07:14:44 +02:00
Martin Geisler
a806763de0 commands: do not split a translated string
Splitting the string after translation relies on the implicit
assumption that translators will always translate the English words
using single foreign words.

Also, when translating we want as much context as possible so I've
moved the string formatting into the translatable string.
2009-10-19 14:37:37 +02:00
Mads Kiilerich
0f7110ec11 Merge with redone 9660769e6539 (issue1860) 2009-10-16 11:19:39 +02:00
Mads Kiilerich
31862f90bd Dummy-merge with 9660769e6539 (issue1860) 2009-10-16 11:18:38 +02:00
Mads Kiilerich
1c7c19b2e6 Redo 9660769e6539 (issue1860) 2009-10-16 11:16:42 +02:00
Martin Geisler
48349e3ff0 Merge with crew-stable 2009-10-16 00:45:18 +02:00
Benoit Allard
f444222eca mq: fix traceback for qpush inexistant-patch with no patch applied 2009-10-16 00:09:18 +02:00
Patrick Mezard
990e7895a0 Merge with crew-stable 2009-10-16 00:06:23 +02:00
Patrick Mezard
f235a47953 convert/svn: better error when hg cannot call itself (issue1838) 2009-10-15 23:15:30 +02:00