Commit Graph

157 Commits

Author SHA1 Message Date
Thomas Arendsen Hein
0437032c16 Added copyright information to hbisect.py 2006-03-08 19:25:03 +01:00
Thomas Arendsen Hein
8bb6736d79 Make bisect extension work with python2.3 2006-03-08 05:31:20 +01:00
Thomas Arendsen Hein
a881a92ada Fixed spacing/indentation, removed #! script header, added short description. 2006-03-08 05:16:36 +01:00
Thomas Arendsen Hein
793e55438b Fixed contrib/hbisect.py to work with the new opener behaviour. 2006-03-08 05:07:20 +01:00
Lee Cantey
30c4e31573 Remove patchbomb from list of contrib files to install since it's now an extension.
Innosetup script was referencing old contrib location.
Also cosmetic change to group related files.
2006-03-06 21:03:46 -08:00
Alexis S. L. Carvalho
9a000b91a7 Really fix bash_completion on Solaris. Maybe. Hopefully.
Use substr instead of sub.
2006-03-01 14:52:28 +01:00
Alexis S. L. Carvalho
6ba2866bba Fix bash_completion on Solaris
TK Soh noticed that the awk that ships with Solaris doesn't allow you
to define new functions.  According to
http://www.shelldorado.com/articles/awkcompat.html
it looks like it also doesn't have some other stuff that we were using,
like deletion of an array element and gsub.

Rewrite the parsing of hg --debug help to work around that. This
version doesn't filter aliases that are simple abbreviations for debug
commands (not a big problem, since there are none right now).
2006-02-28 11:49:35 -06:00
Benoit Boissinot
f98eafd479 bisect: fix for recent changes disallowing "false" merges 2006-02-19 18:59:20 +01:00
Matt Mackall
3c42236268 Revert convert-repo changes 2006-02-13 12:48:28 -06:00
lcantey@gmail.com
207fed5cdc Update version strings and add release notes to Windows specific files 2006-02-03 11:29:39 +01:00
Vadim Gelfer
74c20c0bae merge with crew. 2006-02-03 00:52:31 -08:00
Vadim Gelfer
65a53c316b make stuff for macos x binary package.
it is now easy to make prebuilt binary for macos x.  i have no hosting
space.  i hope someone else can make binaries.
2006-02-03 00:50:28 -08:00
Thomas Arendsen Hein
df5b521a79 Cleanup of spacing in bash_completion 2006-02-02 08:16:17 +01:00
Thomas Arendsen Hein
d64ca73426 Use user specified path to hg in bash_completion
e.g. for multiple installs with different versions or extensions.
2006-02-02 07:50:20 +01:00
Vadim Gelfer
5ddda972ae turn patchbomb script into an extension module.
command name is now 'hg email'.
2006-01-31 08:06:35 -08:00
Matt Mackall
08e52a57b8 convert-repo: use commit rather than rawcommit 2006-01-29 18:38:56 +13:00
Matt Mackall
f7a7ecf39e convert-repo: automatically create empty map file 2006-01-29 17:22:03 +13:00
mason@suse.com
1ddefaa316 Remove duplicate bunidiff code from hgdiff, importing from mdiff.py instead 2006-01-28 17:16:15 +13:00
Alexis S. L. Carvalho
12832e1570 bash_completion: ignore hg help error messages
They are usually not useful when you're completing stuff and end up
cluttering the screen.
2006-01-27 12:15:39 +01:00
Alexis S. L. Carvalho
01b4cbf805 bash_completion: always use single quotes with compgen -W
This avoids a bug in bash 2.05a
2006-01-27 12:11:14 +01:00
Alexis S. L. Carvalho
af689bde09 bash_completion: be more careful about whitespaces
- use awk to parse the output of hg help.
- print one completion candidate per line
- print the debug commands after regular commands
  (this eases the shell side of the parsing)
- don't print aliases that are simple abbreviations
  (e.g. up/update, id/identify)
2006-01-27 12:10:35 +01:00
Thomas Arendsen Hein
6ca7b37617 Added hint to hg-ssh that you can use shell pattern matching. 2006-01-26 16:37:31 +01:00
Thomas Arendsen Hein
2ac2a1e7e3 _hg_status improvements in bash_completion:
- Use "hg status -n" option instead of cut command.
- Sort status flags accoring to "hg status --help"
- Show deleted files instead of "hg remove"d for "hg remove"
2006-01-26 15:07:46 +01:00
Alexis S. L. Carvalho
606e1d0e53 bash_completion: small updates and fixes
- $result in _hg_commands is not an array
- use "hg status ."
- update "hg cat" completion
- let bash itself generate the default completion
2006-01-26 14:52:26 +01:00
Matt Mackall
8ad9960f06 contrib: add Chris Mason's stand-alone diff tool
This uses Mercurial's diff algorithm to generate unidiffs like the traditional diff tool.
2006-01-24 14:49:19 +13:00
Benoit Boissinot
4999ac2c31 make the order of the arguments for filterfiles consistent
fix a bug where the order was reversed
2006-01-18 16:55:05 +01:00
Thomas Arendsen Hein
c057b50e85 Distinguish removed and deleted files. Tests are not fixed yet.
hg status will now show "R filename" for "hg rm"ed files and
"! filename" for files which were deleted manually.
Manually deleted files are considered unmodified.
2006-01-12 13:58:36 +01:00
Thomas Arendsen Hein
f5ef5dad07 Renamed c, a, d, u to modified, added, removed, unknown for users of changes() 2006-01-12 13:35:09 +01:00
Vincent Danjean
0df40f4f57 hgk.py is not a script (no '#!' line needed) 2006-01-12 06:29:06 +01:00
Vadim Gelfer
a37f3bbd39 add --plain option to patchbomb.
this omits the hg patch headers.  it makes a patchbomb email look like
a regular email with a patch.
2005-12-28 07:13:52 -08:00
Vadim Gelfer
c61d342be1 make patchbomb work with recent changes to export 2005-12-28 07:11:46 -08:00
Daniel Kobras
a3a420907c Less annoying directory completion (see http://bugs.debian.org/343458)
The current bash completion script is quite painful in conjuntion with
deep directory trees because it adds a space after each successful
directory completion. Eg. "hg clone /ho<tab>" is completed to "hg clone
/home " when what you really want is "hg clone /home/" (assuming the
complete path to the repository looks like /home/foo/hg...).

That's because the 'complete' command does not know about the type of
completion it receives from the _hg shell function. When only a single
completion is returned, it assumes completion is complete and tells
readline to add a trailing space. This behaviour is usually wanted, but
not in the case of directory completion.

I've attached a patch that circumvents this problem by only returning
successful completions for directories that contain a .hg subdirectory.
If no repositories are found, no completions are returned either, and
bash falls back to ordinary (filename) completion. I find this behaviour
a lot less annoying than the current one.

Alternative: Use option nospace for the 'complete' command and let _hg
itself take care of adding a trailing space where appropriate. That's a
far more intrusive change, though.
2005-12-15 15:40:14 +01:00
Thomas Arendsen Hein
6e1ff4c419 Merge with http://hg.omnifarious.org/~hopper/mercurial 2005-11-29 18:06:23 +01:00
Thomas Arendsen Hein
f2525190a2 Space/Tab cleanup in bash_completion. 2005-11-23 08:07:27 +01:00
Alexis S. L. Carvalho
5bb8e5ebbc bash_completion: use hg --debug help to get the list of debug commands.
Also, try completing with the debug commands only when there's no other
candidates.

Based on an idea by TK Soh.
2005-11-23 08:02:35 +01:00
Eric Hopper
dd6718fc31 Convert all classes to new-style classes by deriving them from object. 2005-11-18 22:48:47 -08:00
Michael Gebetsroither
ed299a1d15 added st as alias for status in zsh_completition 2005-11-14 15:10:10 +01:00
Thomas Arendsen Hein
cbb024cd1e Added hg-ssh - a wrapper for ssh access to a limited set of mercurial repos
To be used in ~/.ssh/authorized_keys with the "command" option, see sshd(8):
command="hg-ssh path/to/repo1 /path/to/repo2 ~/repo3 ~user/repo4" ssh-dss ...
(probably together with these other useful options:
 no-port-forwarding,no-X11-forwarding,no-agent-forwarding)

This allows pull/push over ssh to to the repositories given as arguments.

If all your repositories are subdirectories of a common directory, you can
allow shorter paths with:
command="cd path/to/my/repositories && hg-ssh repo1 subdir/repo2"
2005-11-13 02:06:02 +01:00
Steve Borho
6054384fdd zsh: allow 'hg clone' to complete paths listed in ~/.hgrc 2005-11-02 15:45:41 -08:00
Steve Borho
e0c1367c2e zsh completion improvements.
File completers now correctly deal with filenames that contain spaces.
The completers also use 'hg status .' so they'll work correctly when the
default behaviour changes.
2005-10-31 09:58:05 -08:00
Steve Borho
fd7a8ead5d zsh completion: Added '--newest-first' to incoming, outgoing 2005-10-24 19:55:44 -07:00
Steve Borho
8cdd4c7b5c zsh completions: new -M, -m arguments for log, etc. 2005-10-24 16:54:07 -07:00
TK Soh
badf259cef hgk: add horizontal scrollbar to patch window 2005-10-24 14:54:54 -07:00
Eric Bloodworth
4fdfb5c5a8 Add control-w key binding to quit hgk. 2005-10-24 14:54:48 -07:00
Steve Borho
071b8206bf New vim script; provides key mappings and menus for GVIM 2005-10-19 00:05:08 -07:00
Matt Mackall
6cfc6d18b1 convert-repo: fix up octopus merge conversion 2005-10-05 19:27:35 -07:00
Matt Mackall
fcbb29caf2 convert-repo: change duplicate elimination 2005-10-05 19:26:41 -07:00
Matt Mackall
bc67bd579d convert-repo: linearize the tag commit 2005-10-05 19:25:45 -07:00
Matt Mackall
84ef231907 convert-repo: retrieve the commit hash from the tag object for tag import 2005-10-05 17:11:06 -07:00
Matt Mackall
c826fb5f44 convert-repo: Fix timezone handling 2005-10-05 17:09:51 -07:00