Matt Mackall
37eaadf540
match: ignore return of match.bad
...
All users returned false, return can now be dropped
2009-05-31 17:54:18 -05:00
Matt Mackall
a30eb02911
cmdutils: Take over glob expansion duties from util
2009-05-24 16:38:29 -05:00
Matt Mackall
b287cf72fe
match: refactor patkind
...
add patkind(pat) to match
change external users
change util.patkind to _patsplit
2009-05-24 02:56:14 -05:00
Martin Geisler
6355b4950b
cmdutil: mark string for translation
2009-05-20 12:20:27 +02:00
Matt Mackall
16d4ef56bc
commit: explain how to abort commit in editor
2009-05-18 17:36:24 -05:00
Benoit Boissinot
bee6cb3d55
addremove/findrenames: find renames according to the match object (issue1527)
...
Instead of only finding similarities in the added/removed files found
by the addremove step, follow the match object:
hg addremove -s80 foo -> add and removes files in foo
+ find similarities between files in foo
hg addremove -s80 -> add and removes files in the whole repo
+ find similarities between files in the whole repo
hg import --similarity will still work correctly (only find similarities
between files found in the patch).
2009-05-17 22:51:17 +02:00
Benoit Boissinot
6f0577d081
addremove: mapping isn't really needed, simplify
2009-05-17 22:40:04 +02:00
Matt Mackall
5534a9c3e3
editor: move HG: filtering from ui to commiteditor
2009-05-14 13:21:17 -05:00
Matt Mackall
ebe3b0ebc3
commit: move commit editor to cmdutil, pass as function
2009-05-14 13:20:40 -05:00
Peter Arrenbrecht
a75765cf7f
drop unused imports
2009-05-14 15:35:46 +02:00
Martin Geisler
4d0bbe44ba
cmdutil: replace pseudo-set by real set
2009-05-12 01:08:28 +02:00
Dirkjan Ochtman
5c6c43b746
templater: provide the standard template filters by default
2009-05-12 12:04:05 +02:00
Simon Heimberg
09ac1e6c92
separate import lines from mercurial and general python modules
2009-04-28 17:40:46 +02:00
Martin Geisler
750183bdad
updated license to be explicit about GPL version 2
2009-04-26 01:08:54 +02:00
Matt Mackall
f6c8930392
replace various uses of list.reverse()
2009-04-26 16:50:44 -05:00
Matt Mackall
2f9b02c62d
replace util.sort with sorted built-in
...
This is marginally faster for small and moderately-sized lists
2009-04-26 16:50:44 -05:00
Matt Mackall
88b13fecec
ui: replace parentui mechanism with repo.baseui
2009-04-26 16:50:43 -05:00
Matt Mackall
6708d0e299
add cmdutil.remoteui
...
remoteui sorts out the issues of getting ssh config options from the
local repo into the remote one while not copying other options like hooks.
2009-04-26 16:50:43 -05:00
Martin Geisler
e2222d3c43
replace set-like dictionaries with real sets
...
Many of the dictionaries created by dict.fromkeys were emulating sets.
These can now be replaced with real sets.
2009-04-22 00:57:28 +02:00
Martin Geisler
85e0e5f5fa
cmdutil: return boolean result directly in want function
2009-04-22 17:15:59 +02:00
Martin Geisler
80dd126e92
remove unnecessary outer parenthesis in if-statements
2009-04-22 01:39:47 +02:00
Dirkjan Ochtman
10e214223e
cmdutil: prevent code repetition by abstraction in changeset_templater
2009-04-06 10:51:27 +02:00
Dirkjan Ochtman
7856ee8225
cmdutil: refactor handling of templating in show_changeset()
2009-04-04 17:55:52 +02:00
Matt Mackall
642f4d7151
move encoding bits from util to encoding
...
In addition to cleaning up util, this gets rid of some circular dependencies.
2009-04-03 14:51:48 -05:00
Martin Geisler
05b3dfb2cf
cmdutil: fix untranslatable string in copy
2009-03-27 17:35:00 +01:00
Alexander Solovyov
475ce753d3
templater: ability to display diffstat for log-like commands
2009-03-23 10:41:42 +01:00
Alexander Solovyov
7ea3611901
templater: use contexts consistently throughout changeset_templater
2009-03-23 13:15:57 +01:00
timeless
26d95caa99
help: miscellaneous language fixes
2009-02-28 12:38:45 +01:00
Matt Mackall
ca1b896eac
log: ignore --removed if no files specified (issue1166)
...
Otherwise we filter out merge changesets with no changed files
2009-02-16 17:37:23 -06:00
Jim Correia
78e5b53d7d
add --git option to commands supporting --patch (log, incoming, history, tip)
...
No short -g form, since it would conflict with -g from the graphlog extension.
2009-02-14 22:40:39 +01:00
Alexander Solovyov
18946af340
cmdutil.logmessage: options should be optional
2009-01-19 12:38:54 +02:00
Matt Mackall
e61d364b61
error: move UnknownCommand and AmbiguousCommand
2009-01-12 11:39:38 -06:00
Brendan Cully
99c25ba716
Improved error message for log --follow
...
Mads Kiilerich notes that the existing message was unclear
when a nonexistent file was supplied.
2008-11-24 17:16:39 -08:00
Dirkjan Ochtman
9ef9b3e5db
cmdutil: use change contexts for cset-printer and cset-templater
2008-11-14 13:59:25 +01:00
Matt Mackall
b2807810c6
linkrev: take a revision number rather than a hash
2008-11-12 15:19:14 -06:00
Ronny Pfannschmidt
599e773be7
export: fixed silent output file overwriting
...
hg export -o outfile 1 2 3 4 had the same effect as hg -o outfile 4
This was caused by opening with 'w' instead of 'a'. This only occurs when
the filename pattern resulted in ambiguous patch filenames.
2008-11-06 11:17:38 +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
Benoit Boissinot
ea7fe6dacc
remove unused variables
2008-10-28 19:25:26 +01:00
Matt Mackall
bebeb261d5
findcmd: have dispatch look up strict flag
2008-10-22 17:34:08 -05:00
Matt Mackall
d06459495e
rename: handle renaming to a target marked removed
2008-10-18 04:26:09 -05:00
Benoit Boissinot
20fc9c8d79
allow committing a removed directory
...
fix issue1089
2008-09-03 02:27:25 +02:00
Martin Geisler
28fb695e9a
i18n: mark strings for translation in Mercurial
2008-08-31 16:12:02 +02:00
Matt Mackall
a65ef7bc5d
util: add sort helper
2008-06-27 18:28:45 -05:00
Matt Mackall
d4ab55a92b
status: clean up all users for unknown files
2008-06-27 13:43:29 -05:00
Matt Mackall
bc715be859
add __len__ and __iter__ methods to repo and revlog
2008-06-26 14:35:50 -05:00
Matt Mackall
fbb5127472
use repo[changeid] to get a changectx
2008-06-26 14:35:46 -05:00
Matt Mackall
9d556277c8
context: avoid using None for working parent
2008-06-25 17:35:20 -05:00
Patrick Mezard
a19a271534
Merge with crew-stable
2008-06-07 11:43:16 +02:00
Maxim Dounin
1ce305a01e
addremove: correctly handle intermediate symlinks
...
This fixes problems mentioned in issue660 comments (unrelated to original
issue) where directory was renamed, and symlink was added instead.
In such situation addremove wasn't able to correctly detect that old files
no longer here, but tried to add symlink (and failed due collision with
old files).
2008-05-07 14:32:00 +04:00
Matt Mackall
fb88571d19
match: remove files arg from repo.status and friends
2008-05-12 11:37:08 -05:00