Bryan O'Sullivan <bos@serpentine.com> [Tue, 12 Jun 2007 14:39:36 -0700] rev 4564
patchbomb: 0c61124ad877 moved setremoteconfig into cmdutil
Brendan Cully <brendan@kublai.com> [Tue, 12 Jun 2007 13:21:42 -0700] rev 4563
dispatch: restore a dropped shlex import
Add test-dispatch as a place for command parsing and dispatch tests.
Thomas Arendsen Hein <thomas@intevation.de> [Tue, 12 Jun 2007 18:55:47 +0200] rev 4562
merge with main
Thomas Arendsen Hein <thomas@intevation.de> [Tue, 12 Jun 2007 17:39:57 +0200] rev 4561
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.
Matt Mackall <mpm@selenic.com> [Wed, 13 Jun 2007 13:15:53 -0500] rev 4560
extensions: fix lookup of hgext.foo modules
Matt Mackall <mpm@selenic.com> [Wed, 13 Jun 2007 13:15:51 -0500] rev 4559
localrepo: demand-load changeset, manifest, and dirstate
Matt Mackall <mpm@selenic.com> [Tue, 12 Jun 2007 10:34:54 -0500] rev 4558
extensions: add missing sys import
Matt Mackall <mpm@selenic.com> [Mon, 11 Jun 2007 21:09:24 -0500] rev 4557
dispatch: accept an abbreviation of --repository
Matt Mackall <mpm@selenic.com> [Mon, 11 Jun 2007 21:09:24 -0500] rev 4556
dispatch: move findrepo to cmdutil
Matt Mackall <mpm@selenic.com> [Mon, 11 Jun 2007 21:09:24 -0500] rev 4555
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.
Matt Mackall <mpm@selenic.com> [Mon, 11 Jun 2007 21:09:24 -0500] rev 4554
dispatch: use the repo path found by early parsing
This lets us simplify things a bit.
Matt Mackall <mpm@selenic.com> [Mon, 11 Jun 2007 21:09:24 -0500] rev 4553
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%.
Matt Mackall <mpm@selenic.com> [Mon, 11 Jun 2007 21:09:24 -0500] rev 4552
dispatch: parse and apply cwd opt early
Matt Mackall <mpm@selenic.com> [Mon, 11 Jun 2007 21:09:24 -0500] rev 4551
dispatch: rename variables after code motion
Matt Mackall <mpm@selenic.com> [Mon, 11 Jun 2007 21:09:24 -0500] rev 4550
dispatch: hoist debugging hook to runcatch
Matt Mackall <mpm@selenic.com> [Mon, 11 Jun 2007 21:09:24 -0500] rev 4549
dispatch: move dispatching code to cmdutil
Matt Mackall <mpm@selenic.com> [Mon, 11 Jun 2007 21:09:24 -0500] rev 4548
dispatch: move runcommand to cmdutil
Matt Mackall <mpm@selenic.com> [Mon, 11 Jun 2007 21:09:24 -0500] rev 4547
dispatch: pull final command execution into its own function
Matt Mackall <mpm@selenic.com> [Mon, 11 Jun 2007 21:09:23 -0500] rev 4546
dispatch: reduce nesting by moving parsing exceptions
Matt Mackall <mpm@selenic.com> [Mon, 11 Jun 2007 21:09:23 -0500] rev 4545
dispatch: move signal and exception handling to its own function
Matt Mackall <mpm@selenic.com> [Mon, 11 Jun 2007 21:09:23 -0500] rev 4544
Create a separate module for managing extensions
Matt Mackall <mpm@selenic.com> [Mon, 11 Jun 2007 21:09:23 -0500] rev 4543
extensions: separate function for loading single extensions
Matt Mackall <mpm@selenic.com> [Mon, 11 Jun 2007 21:09:23 -0500] rev 4542
dispatch: reorder functions
Matt Mackall <mpm@selenic.com> [Mon, 11 Jun 2007 21:09:23 -0500] rev 4541
localrepo: break out the repo-finding walk into its own function
Brendan Cully <brendan@kublai.com> [Mon, 11 Jun 2007 12:14:31 -0700] rev 4540
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.
Brendan Cully <brendan@kublai.com> [Mon, 11 Jun 2007 11:06:42 -0700] rev 4539
Small cleanups for the new tag code
Josef "Jeff" Sipek <jeffpc@josefsipek.net> [Fri, 01 Jun 2007 19:56:39 -0400] rev 4538
gitweb: Display branch and tag labels
Pages which display labels:
- summary
- shortlog
- changelog
- changeset
- search
Brendan Cully <brendan@kublai.com> [Sun, 10 Jun 2007 21:05:01 -0700] rev 4537
Merge with mpm
Brendan Cully <brendan@kublai.com> [Sun, 10 Jun 2007 20:08:47 -0700] rev 4536
Split convert extension into common and repository type modules
Matt Mackall <mpm@selenic.com> [Sun, 10 Jun 2007 21:16:58 -0500] rev 4535
commit: fix bug where dirstate for removed file is confused
This fixes issue586
Matt Mackall <mpm@selenic.com> [Sun, 10 Jun 2007 19:16:20 -0500] rev 4534
hg serve: don't lookup user-supplied names/addresses
Thomas Arendsen Hein <thomas@intevation.de> [Sat, 09 Jun 2007 13:25:54 +0200] rev 4533
Removed trailing \n in calls to util.Abort()
Thomas Arendsen Hein <thomas@intevation.de> [Sat, 09 Jun 2007 13:17:58 +0200] rev 4532
Some small cleanups for convert extension:
- repo doesn't need to be imported
- util.Abort doesn't need \n
- space after comma
- long lines
- spacing
Alexis S. L. Carvalho <alexis@cecm.usp.br> [Sat, 09 Jun 2007 01:04:28 -0300] rev 4531
Avoid extra filelogs entries.
Right now, there are some situations in which localrepo.filecommit can
create filelog entries even though they're not needed. For example:
- permissions for a file have changed;
- qrefresh can create a filelog entry identical to its parent (see the
added test);
- convert-repo creates extra filelog entries in every merge where the
first parent has added files (for example, changeset ebebe9577a1a of
the kernel repo added extra filelog entries to files in the
arch/blackfin directory, even though the merge should only touch the
drivers/ata directory). This makes "hg log file" in a converted repo
less useful than it could be, since it may mention many merges that
don't actually touch that specific file.
They all come from the same basic problem: localrepo.commit (through
filecommit) creates new filelog entries for all files passed to it
(except for some cases during a merge).
Patch and test case provided by Benoit.
This should fix issue351.
Alexis S. L. Carvalho <alexis@cecm.usp.br> [Sat, 09 Jun 2007 01:04:28 -0300] rev 4530
Make sure the changelog mentions files whose flags changed
These changes don't actually need a new filelog entry (see next patch),
but if we don't mention the files in the changelog, it becomes much
harder to find all changesets that touch a file (not even a
"hg log --removed file" will work).
Alexis S. L. Carvalho <alexis@cecm.usp.br> [Fri, 08 Jun 2007 23:49:12 -0300] rev 4529
run-tests.py: set ui.slash = True
This should make things easier for pysh.
Alexis S. L. Carvalho <alexis@cecm.usp.br> [Fri, 08 Jun 2007 23:49:12 -0300] rev 4528
test-config-case: print only the Section we're interested in.
This allows us to add additional settings to the global hgrc file
created by run-tests.py without breaking this test.
Alexis S. L. Carvalho <alexis@cecm.usp.br> [Fri, 08 Jun 2007 23:49:12 -0300] rev 4527
Add ui.slash hgrc setting
This will make most commands print paths using "/", regardless of
the value of os.sep.
Alexis S. L. Carvalho <alexis@cecm.usp.br> [Fri, 08 Jun 2007 23:49:12 -0300] rev 4526
docopy: use repo.pathto to format paths for printing
Alexis S. L. Carvalho <alexis@cecm.usp.br> [Fri, 08 Jun 2007 23:49:12 -0300] rev 4525
Add dirstate.pathto and localrepo.pathto.
Every time util.pathto is called, we have to pass the repo root and the
repo cwd.
dirstate.pathto is a simple convenience function that knows about the
root and the cwd arguments. It's still possible to pass the cwd as an
optimization.
localrepo.pathto is a convenience function that just calls
dirstate.pathto, just like localrepo.getcwd.
dirstate.pathto becomes a single point that converts most (all?) paths
from the internal representation to some OS-specific relative path for
display purposes.
Alexis S. L. Carvalho <alexis@cecm.usp.br> [Fri, 08 Jun 2007 23:49:12 -0300] rev 4524
Use absolute paths in revert.
Alexis S. L. Carvalho <alexis@cecm.usp.br> [Fri, 08 Jun 2007 23:49:12 -0300] rev 4523
Use absolute paths in docopy.
Alexis S. L. Carvalho <alexis@cecm.usp.br> [Fri, 08 Jun 2007 23:49:12 -0300] rev 4522
Use absolute paths in addremove.
This is more consistent with other places in the code, which only use
the "relpath" returned by cmdutil.walk for display purposes.
Edouard Gomez <ed.gomez@free.fr> [Thu, 07 Jun 2007 23:16:10 +0200] rev 4521
Add some more smart when initializing destination repository
Edouard Gomez <ed.gomez@free.fr> [Thu, 07 Jun 2007 23:06:17 +0200] rev 4520
Fix hgext/convert/__init__.py rights
Thomas Arendsen Hein <thomas@intevation.de> [Thu, 07 Jun 2007 22:28:52 +0200] rev 4519
Include convert extension in packages setup
(reported by Christian Ebert and Eric Hopper)
Thomas Arendsen Hein <thomas@intevation.de> [Thu, 07 Jun 2007 12:41:12 +0200] rev 4518
convert: map CVS HEAD to default branch
Patrick Mezard <pmezard@gmail.com> [Sun, 03 Jun 2007 22:11:25 +0200] rev 4517
ui: make readsections() abort when configuration cannot be read.
Thomas Arendsen Hein <thomas@intevation.de> [Wed, 06 Jun 2007 20:22:52 +0200] rev 4516
Removed trailing whitespace and tabs from python files
Thomas Arendsen Hein <thomas@intevation.de> [Wed, 06 Jun 2007 20:17:03 +0200] rev 4515
Fixed python2.3 incompatibility (rsplit) in cvs code of convert extension
Edouard Gomez <ed.gomez@free.fr> [Fri, 25 May 2007 08:12:33 +0200] rev 4514
Add a wrapper script for convert extension
Edouard Gomez <ed.gomez@free.fr> [Fri, 25 May 2007 00:56:48 +0200] rev 4513
Turns convert.py into a real extension
Thomas Arendsen Hein <thomas@intevation.de> [Wed, 06 Jun 2007 19:49:47 +0200] rev 4512
Move convert-repo to hgext/convert/__init__.py
Thomas Arendsen Hein <thomas@intevation.de> [Wed, 06 Jun 2007 19:06:43 +0200] rev 4511
Fixed test output for changed glog (. instead of @)
Thomas Arendsen Hein <thomas@intevation.de> [Wed, 06 Jun 2007 19:05:18 +0200] rev 4510
Issue a warning if "-r ." is used with two working directory parents.
Rationale for not aborting instead:
The first parent is usually more important as it is the local branch
during a merge and commands like 'hg diff' and 'hg diff -r.' behave still
identically (except for the warning of course).
Added a test for log -r. with one and two parents.
Thomas Arendsen Hein <thomas@intevation.de> [Wed, 06 Jun 2007 18:28:48 +0200] rev 4509
graphlog: Print . instead of @ for working directory parents
"." is accepted as an alias for the first working directory parent by -r/--rev
Alexis S. L. Carvalho <alexis@cecm.usp.br> [Tue, 05 Jun 2007 19:55:27 -0300] rev 4508
Remove atomicfile class.
The interface provided by opener(atomic=True) is inherently unsafe:
if an exception is raised in the code using the atomic file, the
possibly incomplete file will be renamed to its final destination,
defeating the whole purpose of atomic files.
To get around this, we would either need some bad hacks involving
sys.exc_info (to make sure things work in except: blocks), or an
interface to say "file is complete; rename it".
This is the exact interface provided by atomictempfile. Since there
are no remaining users of the atomicfile class, just remove it.
Alexis S. L. Carvalho <alexis@cecm.usp.br> [Tue, 05 Jun 2007 19:55:27 -0300] rev 4507
Use atomictemp files to write the dirstate.
atomic files are not safe in all cases.
Alexis S. L. Carvalho <alexis@cecm.usp.br> [Tue, 05 Jun 2007 19:26:36 -0300] rev 4506
test-serve: let run-tests.py kill the daemons
If the daemons die while the tests are still running, we'll get additional
"killed!" messages, making the test fail.
Joel Rosdahl <joel@rosdahl.net> [Mon, 04 Jun 2007 21:49:01 +0200] rev 4505
Fix bug in "hg serve -v"