Matt Mackall
dd962fae26
dirstate: lazify and lambdafy _slash
2007-06-18 13:24:34 -05:00
Matt Mackall
12c1ce4938
dirstate: simplify state()
2007-06-18 13:24:34 -05:00
Matt Mackall
38474db3cb
dirstate: move ignore to its own file
2007-06-18 13:24:34 -05:00
Matt Mackall
c0a4aebd3c
dirstate: replace clear()
2007-06-18 13:24:34 -05:00
Matt Mackall
90c0194d9b
dirstate: fold parse into read
2007-06-18 13:24:33 -05:00
Matt Mackall
dd38b9f308
dirstate: make reload lazy
2007-06-18 13:24:33 -05:00
Matt Mackall
6a2d255741
dirstate: lazify initdirs
2007-06-18 13:24:33 -05:00
Matt Mackall
bb39ad22fb
dirstate: lazify copymap, _branch, and _pl
2007-06-18 13:24:33 -05:00
Matt Mackall
3da450bd87
dirstate: use getattr rather than lazyread
2007-06-18 13:24:33 -05:00
Brendan Cully
b6d2fc3ac4
Notify the user that hg branch does not create a branch until commit
2007-06-18 10:44:43 -07:00
Patrick Mezard
d37b2026d5
cmdutil: add missing "time" import.
2007-06-17 20:35:32 +02:00
Thomas Arendsen Hein
1bdf3feac6
Make --import-branch option actually work (- is translated to _)
2007-06-17 14:11:30 +02:00
Eric Hopper
4e64ad3b5a
Add --import-branch option to hg import to pull in branch information without --exact
2007-06-14 09:01:51 -07:00
Brendan Cully
228060290f
Make parents with a file but not a revision use working directory revision.
2007-06-14 10:58:49 -07:00
Thomas Arendsen Hein
75327fd456
merge with main
2007-06-14 11:33:32 +02:00
Brendan Cully
5686dde045
Merge with crew
2007-06-13 19:11:20 -07:00
Brendan Cully
9b610cb44c
extensions: fix load of module/__init__.py on OS X
2007-06-13 19:05:20 -07:00
Alexis S. L. Carvalho
574b7631bc
localrepo.status: only append stuff to the clean list if list_clean is true
...
This is consistent with dirstate.status.
2007-06-13 21:39:45 -03:00
Alexis S. L. Carvalho
2a15874eb2
commands.remove: don't use the unknown list
2007-06-13 19:15:58 -03:00
Alexis S. L. Carvalho
f5f49df61e
commands.commit: don't use the unknown list
2007-06-13 19:15:58 -03:00
Alexis S. L. Carvalho
00cc2c2d06
localrepo.add: avoid some stats
...
There's still an extra lstat done by dirstate.update.
2007-06-13 19:15:58 -03:00
Alexis S. L. Carvalho
12900975cc
revert: use util.lexists
2007-06-13 19:15:58 -03:00
Alexis S. L. Carvalho
8b373440d8
addremove: use util.lexists
2007-06-13 19:15:58 -03:00
Alexis S. L. Carvalho
587c06ebc5
commands.commit: symlinks are supported
2007-06-13 19:15:58 -03:00
Brendan Cully
e96607cf35
extensions: load modules in module/__init__.py form.
...
For example, convert=/path/to/convert now works.
2007-06-13 13:46:40 -07:00
Matt Mackall
123d0f2541
extensions: fix lookup of hgext.foo modules
2007-06-13 13:15:53 -05:00
Matt Mackall
a4399f5062
localrepo: demand-load changeset, manifest, and dirstate
2007-06-13 13:15:51 -05:00
Brendan Cully
37671e0260
dispatch: restore a dropped shlex import
...
Add test-dispatch as a place for command parsing and dispatch tests.
2007-06-12 13:21:42 -07:00
Thomas Arendsen Hein
03a476e13f
merge with main
2007-06-12 18:55:47 +02:00
Thomas Arendsen Hein
635f47fb1d
Revive commands.dispatch as a simple way to call hg from other pythons scripts.
...
This was already used by hg-ssh and others and is really convenient if you
just want a native equivalent of calling the command line version.
2007-06-12 17:39:57 +02:00
Matt Mackall
42349e08dc
extensions: add missing sys import
2007-06-12 10:34:54 -05:00
Matt Mackall
7092619ffc
dispatch: accept an abbreviation of --repository
2007-06-11 21:09:24 -05:00
Matt Mackall
ca982cdfb5
dispatch: move findrepo to cmdutil
2007-06-11 21:09:24 -05:00
Matt Mackall
dc4befe753
localrepo: don't search from path
...
All current callers already pass in the repo root.
This normalizes things a bit. Now all repo types take a direct path to
repo root and only the command line interface (or the dispatcher)
searches from the current directory.
2007-06-11 21:09:24 -05:00
Matt Mackall
1621c30af5
dispatch: use the repo path found by early parsing
...
This lets us simplify things a bit.
2007-06-11 21:09:24 -05:00
Matt Mackall
b37003d1a6
dispatch: parse and apply -R early
...
This allows us to use extensions specified in .hg/hgrc. Unfortunately,
this requires us to parse that file twice, but performance impact on
the version command appears to be less than 1%.
2007-06-11 21:09:24 -05:00
Matt Mackall
a0218b2be7
dispatch: parse and apply cwd opt early
2007-06-11 21:09:24 -05:00
Matt Mackall
eec35bbc8f
dispatch: rename variables after code motion
2007-06-11 21:09:24 -05:00
Matt Mackall
671f8a455f
dispatch: hoist debugging hook to runcatch
2007-06-11 21:09:24 -05:00
Matt Mackall
7daba33088
dispatch: move dispatching code to cmdutil
2007-06-11 21:09:24 -05:00
Matt Mackall
fc13f3eb60
dispatch: move runcommand to cmdutil
2007-06-11 21:09:24 -05:00
Matt Mackall
fe0bc5497b
dispatch: pull final command execution into its own function
2007-06-11 21:09:24 -05:00
Matt Mackall
9ddb5e812f
dispatch: reduce nesting by moving parsing exceptions
2007-06-11 21:09:23 -05:00
Matt Mackall
904b4d70df
dispatch: move signal and exception handling to its own function
2007-06-11 21:09:23 -05:00
Matt Mackall
67bd5873db
Create a separate module for managing extensions
2007-06-11 21:09:23 -05:00
Matt Mackall
cb98d050d6
extensions: separate function for loading single extensions
2007-06-11 21:09:23 -05:00
Matt Mackall
5e5d2fc9f8
dispatch: reorder functions
2007-06-11 21:09:23 -05:00
Matt Mackall
d157dd7e9f
localrepo: break out the repo-finding walk into its own function
2007-06-11 21:09:23 -05:00
Brendan Cully
497f138a19
Respect locale environment variables on darwin.
...
In python 2.4+ on darwin, locale.getpreferredencoding() returns
mac-roman regardless of what LC_CTYPE, LANG etc are set to. This can
produce hard-to-notice conversion errors if input text is not in
mac-roman. So this patch overrides it with setlocale/getlocale if the
environment has been customized, on the assumption that the user has
done so deliberately.
2007-06-11 12:14:31 -07:00
Brendan Cully
73b9a0fd82
Small cleanups for the new tag code
2007-06-11 11:06:42 -07:00