Commit Graph

245 Commits

Author SHA1 Message Date
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
Matt Mackall
450a60d538 Merge with TAH 2005-10-03 12:52:45 -07:00
Steve Borho
54500796b2 Fix completion function for 'hg pull'. Fix truncation bug and remove tabs. 2005-10-01 00:02:01 -07:00
Benoit Boissinot
d69dc74159 bisect extension for mercurial
it works almost the same as git-bisect:

hg bisect init # start bisecting
hg bisect bad # mark current revision as broken
hg bisect good [<rev>] # mark <rev> as working
... the bisect code finds a new revision to try
... see if it works
hg bisect good # if it worked
hg bisect bad # it doesn't work
continue until there is only one revision left
2005-09-30 11:08:13 -07:00
Mikael Berthe
77d6103d36 Suppress warning in zsh_completion script 2005-09-30 11:06:13 -07:00
Steve Borho
03a0b1e1bb zsh completion function for hg 2005-09-29 13:18:39 -07:00
TK Soh
f2aeca3b0b contrib/hgk: remove hardcoded path to Wish 2005-09-29 13:18:32 -07:00
Robin Farine
6e0b544ef0 emacs minor mode optional argument
With GNU Emacs 21.4.1 and desktop save/restore enabled, loading
"mercurial.el" from ".emacs" breaks Emacs' initialization sequence
when the desktop restore code loads a file under Mercurial control.
The function 'desktop-create-buffer' passes an argument to each
minor mode it activates for the buffer.
2005-09-28 19:42:03 +02:00
mpm@selenic.com
222a6a701c hgk: Allow specifying hgk path in [hgk]path 2005-09-23 19:41:45 -07:00
mpm@selenic.com
6d6d4668ec Fix hgk for date handling changes 2005-09-23 19:38:21 -07:00
Vincent Danjean
eaf481898f hgk is a wish script
--- mercurial-0.7.orig/contrib/hgk	2005-09-23 11:02:21.000000000 +0200
+++ mercurial-0.7/contrib/hgk	2005-09-23 11:07:57.000000000 +0200
@@ -1,6 +1,4 @@
-#!/bin/sh
-# Tcl ignores the next line -*- tcl -*- \
-exec wish "$0" -- "${1+$@}"
+#!/usr/bin/wish

 # Copyright (C) 2005 Paul Mackerras.  All rights reserved.
 # This program is free software; it may be used, copied, modified
2005-09-23 18:58:57 -07:00
Vincent Danjean
0c1cbacb8a bash_completion is not an executable
Index: hg/contrib/bash_completion
===================================================================
--- hg.orig/contrib/bash_completion	2005-09-22 09:40:47.000000000 -0700
+++ hg/contrib/bash_completion	2005-09-23 18:32:46.000000000 -0700
@@ -1,5 +1,3 @@
-#!/bin/bash
-
 shopt -s extglob

 _hg_commands()
2005-09-23 18:58:48 -07:00
Florian La Roche
01847fb038 git -> hg conversion script
contrib/convert-repo changes:
- do not print verbose output so that error messages are seen more easily
- Output the date as integer and not as floating point number.
- Do not require a ".git" subdirectory to work on, but use the GIT_DIR
  environment var to specify the git repository.

Change is otherwise compatible to the current version and I have tested it
by converting the kernel and several git respositories from kernel.org.
(Btw, the udev test dir contains a /sys dir with entries which should not
be normal dirs and not be normal files. ;-)

Thanks again for mercurial,

Florian La Roche



--- a/contrib/convert-repo
+++ b/contrib/convert-repo
@@ -28,26 +28,18 @@
         self.path = path

     def getheads(self):
-        h = file(self.path + "/.git/HEAD").read()[:-1]
-        return [h]
+        return [file(self.path + "/HEAD").read()[:-1]]

     def catfile(self, rev, type):
         if rev == "0" * 40: raise IOError()
-        path = os.getcwd()
-        os.chdir(self.path)
-        fh = os.popen("git-cat-file %s %s 2>/dev/null" % (type, rev))
-        os.chdir(path)
+        fh = os.popen("GIT_DIR=%s git-cat-file %s %s 2>/dev/null" % (self.path, type, rev))
         return fh.read()

     def getfile(self, name, rev):
         return self.catfile(rev, "blob")

     def getchanges(self, version):
-        path = os.getcwd()
-        os.chdir(self.path)
-        fh = os.popen("git-diff-tree --root -m -r %s" % (version))
-        os.chdir(path)
-
+        fh = os.popen("GIT_DIR=%s git-diff-tree --root -m -r %s" % (self.path, version))
         changes = []
         for l in fh:
             if "\t" not in l: continue
@@ -83,9 +75,9 @@

     def gettags(self):
         tags = {}
-        for f in os.listdir(self.path + "/.git/refs/tags"):
+        for f in os.listdir(self.path + "/refs/tags"):
             try:
-                h = file(self.path + "/.git/refs/tags/" + f).read().strip()
+                h = file(self.path + "/refs/tags/" + f).read().strip()
                 tags[f] = h
             except:
                 pass
@@ -99,8 +91,7 @@

     def getheads(self):
         h = self.repo.changelog.heads()
-        h = [ hg.hex(x) for x in h ]
-        return h
+        return [ hg.hex(x) for x in h ]

     def putfile(self, f, e, data):
         self.repo.wfile(f, "w").write(data)
@@ -155,12 +146,12 @@
         newlines.sort()

         if newlines != oldlines:
-            print "updating tags"
+            #print "updating tags"
             f = self.repo.wfile(".hgtags", "w")
             f.write("".join(newlines))
             f.close()
             if not oldlines: self.repo.add([".hgtags"])
-            date = "%s 0" % time.mktime(time.gmtime())
+            date = "%s 0" % int(time.mktime(time.gmtime()))
             self.repo.rawcommit([".hgtags"], "update tags", "convert-repo",
                                 date, self.repo.changelog.tip(), hg.nullid)

@@ -262,7 +253,7 @@
             num -= 1
             if c in self.map: continue
             desc = self.commitcache[c][3].splitlines()[0]
-            print num, desc
+            #print num, desc
             self.copy(c)

         tags = self.source.gettags()
@@ -275,6 +266,8 @@
         self.dest.puttags(ctags)

 gitpath, hgpath, mapfile = sys.argv[1:]
+if os.path.isdir(gitpath + "/.git"):
+    gitpath += "/.git"

 c = convert(convert_git(gitpath), convert_mercurial(hgpath), mapfile)
 c.convert()
_______________________________________________
Mercurial mailing list
Mercurial@selenic.com
http://selenic.com/mailman/listinfo/mercurial
2005-09-23 17:15:36 -07:00
mpm@selenic.com
9282c26f18 Merge with TAH 2005-09-22 09:41:34 -07:00
Bryan O'Sullivan
5ee2831c96 Add release notes to built Windows package. 2005-09-21 15:50:43 -07:00
Bryan O'Sullivan
5d9dc1482a Update Windows release notes. 2005-09-21 15:44:50 -07:00
Bryan O'Sullivan
323047d6a2 Fix path of win32text extension in INI file. 2005-09-21 15:27:00 -07:00
Bryan O'Sullivan
02278114b8 Update Inno Setup installer to install INI file. 2005-09-21 15:26:50 -07:00
Bryan O'Sullivan
373279ef36 Add INI file for Windows. 2005-09-21 14:40:52 -07:00
Bryan O'Sullivan
1a913acdc9 Document Windows installer build process. 2005-09-21 00:47:57 -07:00
Bryan O'Sullivan
697d1c7be5 Add Windows installer file.
This uses Inno Setup.  If you don't use ISTool to edit the file, you
are either brave, nuts, or both.
2005-09-21 00:47:40 -07:00
Bryan O'Sullivan
874602b7e2 Add post-install text file. 2005-09-21 00:27:52 -07:00
Bryan O'Sullivan
2be00bb59a Turn the win32 README into a HTML file for now. 2005-09-21 00:20:20 -07:00
Bryan O'Sullivan
06e1e75205 Add win32 README for standalone installer. 2005-09-21 00:02:53 -07:00
TK Soh
c5b7848e50 bash_completion: extended patterns require extglob option 2005-09-21 09:02:41 +02:00
Thomas Arendsen Hein
455a56454d Cleanup of tabs and trailing spaces. 2005-09-21 07:56:19 +02:00
mpm@selenic.com
a0495d55b4 hgit -> hgk.py
Move hgit to hgk.py
- importing hgit as an extension created compiled hgitc, which was confusing
- hgit existed to support hgk so it was slightly misnamed
- removed executable bit as we no longer run it directly
- add 'view' command so we can run hg view
- change git-* commands to debug-* so hg help won't show them
- chdir to repository root on view so hgk doesn't choke in subdirs
2005-09-19 15:59:17 -07:00
Ollivier Robert
7d4d64228c Add a favicon.ico, small version of the main HG image. 2005-09-19 22:15:36 +02:00
Florian La Roche
2ac2c94cd4 Clean up RPM spec file 2005-09-18 14:05:54 -07:00
Thomas Arendsen Hein
581d6f4541 Generated new tcsh_completion with tcsh_completion_build.sh 2005-09-16 21:34:18 +02:00
Thomas Arendsen Hein
e72fd19edc Added new debug commands to bash_completion. 2005-09-16 21:31:31 +02:00
Bryan O'Sullivan
75da334110 Merge with MPM. 2005-09-14 14:39:46 -07:00
Bryan O'Sullivan
949c6e13d6 Merge with myself. 2005-09-14 11:27:36 -07:00
root@coffee.suse.com
89e50a06e8 Fix hgit revtree bug with stop revision handling 2005-09-14 13:14:20 -05:00
mason@suse.com
62c6d5a3e2 Convert hgk to use the hgit extension, and upate to the latest gitk 2005-09-13 19:33:18 -05:00
mason@suse.com
be6155cb7a Turn hgit into an extension, and add commands supporting the latest gitk 2005-09-13 19:33:10 -05:00
mason@suse.com
e2124d8d4f Fix off by one in convert-repo tags
--- crew.orig/contrib/convert-repo	2005-07-16 11:52:06.000000000 -0400
+++ crew/contrib/convert-repo	2005-09-02 02:58:14.000000000 -0400
@@ -86,9 +86,7 @@ class convert_git:
         for f in os.listdir(self.path + "/.git/refs/tags"):
             try:
                 h = file(self.path + "/.git/refs/tags/" + f).read().strip()
-                p, a, d, m = self.getcommit(h)
-                if not p: p = [h] # git is ugly, don't blame me
-                tags[f] = p[0]
+                tags[f] = h
             except:
                 pass
         return tags

--
_______________________________________________
Mercurial mailing list
Mercurial@selenic.com
http://selenic.com/mailman/listinfo/mercurial
2005-09-13 19:32:43 -05:00
Bryan O'Sullivan
6745f74e0f mercurial.el: implement hg-pull, and stub in hg-update. 2005-09-09 22:07:10 -07:00
Bryan O'Sullivan
a0d466ff60 patchbomb: add TLS and SMTP AUTH support.
Original patch from Lee Cantey <lcantey@gmail.com>.
2005-09-09 10:59:05 -07:00
Bryan O'Sullivan
3fdd132f7c patchbomb: continue if we can't import readline. 2005-09-04 15:12:20 -07:00
jdc@uwo.ca
0780d896b0 Fix mercurial.el help. 2005-08-31 11:58:15 -07:00
jdc@uwo.ca
cff6ac7682 Adjust hg-strip and hg-chomp regexps. 2005-08-31 11:56:58 -07:00
Bryan O'Sullivan
18fbb99246 Emacs: fix invocations of "hg log" to match current behaviour of log. 2005-08-31 10:54:00 -07:00
TK Soh
c13eeccd08 Regenerate tcsh_completion after bugfix in generator script 2005-08-30 11:22:29 +02:00
TK Soh
b2311cf1a4 tcsh_completion_build.sh: fixed error caused by xargs on Linux 2005-08-30 11:17:20 +02:00
TK Soh
1a860fa9c2 Add tcsh_completion to contrib 2005-08-30 11:16:31 +02:00
TK Soh
cfb26abf9a Add contrib script for generating tcsh completion source 2005-08-30 11:16:31 +02:00
bos@serpentine.internal.keyresearch.com
5bcd6d125f patchbomb: fix up confusion between strings and lists of strings. 2005-08-29 12:15:37 -07:00
Alexis S. L. Carvalho
d3995fac64 bash_completion: try to use bash3 features if they're available
This does NOT break completion for bash 2.05b (I haven't tested
earlier versions)
2005-08-29 20:37:07 +02:00
Alexis S. L. Carvalho
d75704cfb1 bash_completion: small cleanup and bugfix
_hg_count_non_option wasn't taking global options into account
while counting non-option arguments.

It also used only its first argument.
2005-08-29 20:37:07 +02:00
Alexis S. L. Carvalho
098e537d63 teach bash_completion about --cwd 2005-08-29 20:37:07 +02:00
Alexis S. L. Carvalho
c499be626e bash_completion: better handling of aliases
Instead of listing every alias in the big case..esac, use hg help
to get the canonical name of the command.
2005-08-29 20:37:07 +02:00
Alexis S. L. Carvalho
a6928b8448 bash_completion: update for new help output format 2005-08-29 20:37:07 +02:00
Thomas Arendsen Hein
bb21019e04 Make diffstat optional for patchbomb script. 2005-08-28 18:53:43 +02:00
Thomas Arendsen Hein
13d63f534a Variable 'body' was missing in patchbomb script. 2005-08-28 18:52:55 +02:00
mpm@selenic.com
b7bf6330ab patchbomb: eliminate silly complete summary message
No longer makes sense without attachments
2005-08-27 23:10:49 -07:00
mpm@selenic.com
e47546f442 bash_completion: add debugindex and debugdata support 2005-08-27 20:42:53 -07:00
Bryan O'Sullivan
22c1455510 Merge with MPM. 2005-08-24 12:50:11 -07:00
Bryan O'Sullivan
8dbc4cf5bc Get patchbomb working with tip again. 2005-08-24 12:43:09 -07:00
mpm@selenic.com
49b9ae7f87 Add some aliases 2005-08-24 00:12:04 -07:00
Bryan O'Sullivan
00135fa2ee Emacs: implement hg-incoming, hg-outgoing and hg-push. 2005-08-23 21:53:13 -07:00
Bryan O'Sullivan
de1873f73e Emacs: fix up hg-log and hg-diff to operate more uniformly. 2005-08-23 16:46:10 -07:00
Bryan O'Sullivan
a8e6cde878 Merge with MPM. 2005-08-23 15:42:06 -07:00
Bryan O'Sullivan
cc1aaeb8c2 Merge with MPM. 2005-08-23 15:30:06 -07:00
bos@serpentine.internal.keyresearch.com
d2ff3fcc48 Sync buffers prior to doing a diff. 2005-08-23 15:27:17 -07:00
bos@serpentine.internal.keyresearch.com
f58baa49ba Emacs: search for hg in path before looking in funny places. 2005-08-23 14:51:52 -07:00
bos@serpentine.internal.keyresearch.com
3ba9b828ed Emacs: improved GNU Emacs support. 2005-08-22 15:29:55 -07:00
bos@serpentine.internal.keyresearch.com
68be5d4fdf Emacs support: numerous changes.
Most SCM commands now work in derived buffers (e.g. diff viewing
buffers) as well as buffers backed by files.
diff and log now work properly on repositories and files.
Commit support is more solid.
Doc strings are better.
2005-08-22 15:08:20 -07:00
Bryan O'Sullivan
fe8a00152a Emacs: update mode lines properly after commit. 2005-08-22 03:41:09 -07:00
Bryan O'Sullivan
dab396d542 Emacs: kill commit buffer once it's done with. 2005-08-22 03:27:27 -07:00
Bryan O'Sullivan
2ccf192f2f Emacs: first cut at commit support. 2005-08-22 03:16:32 -07:00
Bryan O'Sullivan
0b8a9067ed contrib/patchbomb: Fix buglet with empty cc list. 2005-08-21 23:33:02 -08:00
Bryan O'Sullivan
8c7c780064 Fix handling of addresses in hgrc. 2005-08-21 23:03:14 -08:00
Bryan O'Sullivan
d11b84dd65 Emacs: document existing functions. 2005-08-21 22:46:57 -08:00
Bryan O'Sullivan
b1076155ac Emacs support: add hg-revert-buffer. 2005-08-21 21:51:01 -08:00
mpm@selenic.com
e0aefc415d Make mercurial.el load with GNU emacs 2005-08-19 18:47:05 -08:00
mpm@selenic.com
ac03d564fb Remove -C alias for --cwd 2005-08-19 16:51:44 -08:00
mpm@selenic.com
8414ebc4a3 Merge with TAH 2005-08-19 16:45:25 -08:00
Bryan O'Sullivan
efcb2fa17c In-progress Emacs snapshot. 2005-08-19 06:41:29 -08:00
TK Soh
fe5a0014c8 bash_completion: support GNU sed 3 and non-GNU sed
replaced command 'Q' introduced in GNU sed 4, in order to support
platforms with older sed.
2005-08-19 06:04:46 +01:00
Bryan O'Sullivan
9d3eb87b87 Merge with MPM. 2005-08-18 12:32:15 -08:00
Bryan O'Sullivan
84636de0f5 Initial skeleton for mercurial.el. 2005-08-18 12:27:57 -08:00
mpm@selenic.com
a82d31d71f bash: Add smarter completion of add/commit/remove/forget/diff/revert
Use hg status to determine which files are interesting for various commands.
Thus, hg add [tab] finds unknown files, and hg commit [tab] finds added, modified, or removed files.
2005-08-17 12:22:12 -08:00
mpm@selenic.com
7eaff8988b Add incoming to completions 2005-08-16 19:31:30 -08:00
mpm@selenic.com
f2d463a963 Teach bash_completion about outgoing 2005-08-16 15:55:33 -08:00
mpm@selenic.com
fe60cec7c8 Add bash_completion to contrib
Contributed by "Alexis S. L. Carvalho" <alexis@cecm.usp.br>

Attached is a file that implements bash completion for hg.  Just
reading it from your .bashrc should be enough to use it - I think: I'm
using the /etc/bash_completion from debian and I'm not sure whether it
sets some important option.

It gets the list of commands, aliases and options from the output of hg
help and then adds some specific stuff - e.g. completing update with
tags; pull and push with path aliases and directories, etc.
2005-08-16 14:17:27 -08:00
Bryan O'Sullivan
25693460a9 Polish patchbomb script.
diffstat output is now a non-default option.

The hgrc file can now contain default information for the patchbomb
script.

Date generation is fixed.
2005-08-12 08:04:31 -08:00
Bryan O'Sullivan
6dfde251c1 Get patchbomb script to not use MIME attachments.
Adding patches as attachments makes it difficult or impossible for some
mail clients to quote them effectively.
2005-08-09 20:53:50 -08:00
Bryan O'Sullivan
e9b1d4e478 Add patchbomb script. 2005-08-09 20:18:58 -08:00
mason@suse.com
c0fbfaefff Change hgit revision lookup to use repo.lookup 2005-07-19 12:41:08 -05:00
mason@suse.com
46d7cac948 Fix hgit usage of repo.changes and fancyopts to reflect current hg api 2005-07-19 12:40:46 -05:00
mpm@selenic.com
b154d7476b Teach convert-repo about tags
Git tags are bad, very bad. More importantly, they're horribly
inconsistent. This drops tags which don't appear to work like most of
the others.

manifest hash: f2dda9e9a3ae8a0d84b19e496059b8a795b8e603
2005-07-14 22:37:46 -08:00
mpm@selenic.com
e8f66f8f04 convert-repo: deal with packed git and other fixes
call out to git-cat-file directly to deal with packed files
use git-diff-tree --root to handle import of first commit
quiet some dirstate warnings
fix parent logic in commit
whitespace bits
topological sort fix

manifest hash: 2943af0168dd2f5e85bba6515fd08687e264863f
2005-07-13 01:53:27 -08:00
mpm@selenic.com
1595427d02 [PATCH] Add contrib/buildrpm script
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[PATCH] Add contrib/buildrpm script

From: Bryan O'Sullivan <bos@serpentine.com>

Just run "buildrpm", and it builds an RPM for you.  No funky monkey
business required.

manifest hash: b8fde5108b5cc8f49ce248d14ac2ee7ad004c91c
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCxb6sywK+sNU5EO8RApQZAJ94VD6NQr9l4Xx6w3S8EdpCIUuiIACfdoHA
qnQWtMM+kqAzi3LnO92UYWE=
=SWIO
-----END PGP SIGNATURE-----
2005-07-01 14:07:40 -08:00
mpm@selenic.com
3359129ba8 [PATCH] clean up RPM spec file
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[PATCH] clean up RPM spec file

From: Bryan O'Sullivan <bos@serpentine.com>

The current RPM spec file makes it impossible to split Mercurial into
multiple interdependent packages.  Here's a patch that fixes that
problem.

manifest hash: 4acc4c5cf4485d92a32d2259b83314b7167dece3
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCxb2+ywK+sNU5EO8RAnrTAJ4tkAh6xnHvRHMxzrfqKb/SXYS2wwCeMfK1
PAr+1FFoSqUmA9rt8Yaw6f4=
=MaPn
-----END PGP SIGNATURE-----
2005-07-01 14:03:42 -08:00
mpm@selenic.com
64a7a0dd00 Add an RPM spec file
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Add an RPM spec file

manifest hash: 4b0a028ee71e7bf1faa4fd6fe0d9efce0b04bf3a
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCvP1jywK+sNU5EO8RAiWVAJ9083+cHfhDn4kjnULikci6nQEvMACdFGyg
1Lv0tujumR2E9lvFe2c4eIw=
=kKKS
-----END PGP SIGNATURE-----
2005-06-24 22:44:51 -08:00
mpm@selenic.com
755400915e Get set_exec from util in convert_repo
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Get set_exec from util in convert_repo

manifest hash: 82fa9db49fa56127d59a7aae70b3c0527420ddad
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCu2LTywK+sNU5EO8RAjBwAJ4+8ME5PPzQumB4u8R0zpX84tqm8QCgqhzE
cd83i0X45u09mKFNFruaHYY=
=9LfW
-----END PGP SIGNATURE-----
2005-06-23 17:33:07 -08:00
mpm@selenic.com
5659821616 convert-repo fixups
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

convert-repo fixups

- - deal with octopus merge
  uniqueify parent list
  add a series of identical commits with "(octopus merge fixup)"
- - add "committer" field from git to the commit message

manifest hash: e33d802afe35edecfc5cc9b567def6db2b0cb885
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCubogywK+sNU5EO8RAkWgAJ9OVHeumKd/nRIfvS/nQ9eSbORqNgCgpBIE
Dza0L59OSJHHmm3Dbp7ygds=
=OEvJ
-----END PGP SIGNATURE-----
2005-06-22 11:21:04 -08:00
mpm@selenic.com
54a3fc9141 [PATCH] Using monotone-viz/git-viz with mercurial
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[PATCH] Using monotone-viz/git-viz with mercurial

From: Vincent Danjean <vdanjean.ml@free.fr>

  monotone-viz is a small GTK+ application that visualizes monotone
ancestry graphs. Its home page is:
http://oandrieu.nerim.net/monotone-viz/
  As monotone and git are similar, the author adapted the 0.9 version to
display git ancestry graphs and call it git-viz. I cannot see any link
from the homepage, but looking in the archive of git ML, it can be found
here:
http://oandrieu.nerim.net/monotone-viz/git-viz-0.1.tar.gz

  I few days ago, I adapted it so that it works with the last versions
of git/cogito. Patches and package are available here:
http://dept-info.labri.fr/~danjean/deb.html#git-viz

  Today, I patched hgit so that it respects the output of git-diff-tree,
I added git-{diff-tree,cat-file,rev-list,rev-tree} that call hgit (2
lines scripts), and added the script 'hg-viz'.
  hg-viz create a .git directory and store the SHA1 of the tip in
.git/HEAD and then call my git-viz.
  All these modifications are in the attached patch.

  I try it in the mercurial repository. After applying the patch, you
just have to add the contrib directory in your PATH and call hg-viz.
  An example of what we can see is on my web page (probably not for a
long time) : http://dept-info.labri.fr/~danjean/temp/hg-viz.png

  Vincent

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCuM50ywK+sNU5EO8RAtlvAJ425JJI9chCdSi8D+R2Af/vJEOUpACffC9e
fxjJ3umBkffj5g86jWaRGZ0=
=LwA2
-----END PGP SIGNATURE-----
2005-06-21 18:35:32 -08:00
Thomas Arendsen Hein
878eebd88e Show revisions in diffs like CVS, based on a patch from Goffredo Baroncelli.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Show revisions in diffs like CVS, based on a patch from Goffredo Baroncelli.
Changes from the original patch:
- - Use 'diff -r ...' instead of 'hg diff -r ...' to support filetype detection
  by at least file(1) and vim.
- - Adjusted tests for this change.
- - Some cleanups.

manifest hash: 5f37d1ef75ea7f4e48b53f02371053ba54fb70f8
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFCsyZzW7P1GVgWeRoRAqczAJ479lR9Z289sP+VH5L+N7pQRU14SACfUueq
88ABloIR3VyRIa4qbujnZio=
=Vva9
-----END PGP SIGNATURE-----
2005-06-17 20:37:23 +01:00
mpm@selenic.com
69c0c6f65d [PATCH] Update hgit to the new commands.dodiff parameters
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[PATCH] Update hgit to the new commands.dodiff parameters

From: Chris Mason <mason@suse.com>

Update hgit to the new commands.dodiff parameters

manifest hash: aa8d98036fae49ab1c1c0e65d86ab0e1bee0fa71
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCsG35ywK+sNU5EO8RAhnoAJwMgK1QA8DkdbU2R19LoLRK1fmCaQCeN1dh
4fHRT4hf+Qi5fND4CpOyqBU=
=63xo
-----END PGP SIGNATURE-----
2005-06-15 10:05:45 -08:00
mpm@selenic.com
a29e708dae hgit rev-list support
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hgit rev-list support

From: Chris Mason <mason@suse.com>

Update hgit rev-list support, make it a special case of hgit rev-tree

Print newest commit first
Add the ability to specify the max number of commits to print (-n or --max-nr=)
Match git feature of stopping at a given commit (hgit rev-list start_commit sto\p_commit)

manifest hash: b9bbd5e95dae771ebef89f8f4102e458052b1835
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCsG26ywK+sNU5EO8RAm5OAJ46G1nhXN2kQ+cKaBOK+oX4zSdQRgCdECvG
6wbG0JRdm7S29K4ynzs4cyY=
=pwpz
-----END PGP SIGNATURE-----
2005-06-15 10:04:42 -08:00
mpm@selenic.com
5e867e4ad4 hgit: remove tabs
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hgit: remove tabs

- From Chris Mason

manifest hash: 68e016c1bbaaebed60ab9755fd054b95dae7263a
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCr1RfywK+sNU5EO8RAjWBAKCMhIYjj/wOIvztLyoOjeuKMSSvLgCePIuD
Mm44JPLF9xegWFyOgB7QVoA=
=eEHJ
-----END PGP SIGNATURE-----
2005-06-14 14:04:15 -08:00
mpm@selenic.com
de605e68a0 Add new convert-repo script
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Add new convert-repo script

This is the beginnings of a generalized framework for converting
repositories. Currently hardwired to convert from git to hg.

manifest hash: dc3b72de2c45bfdaffcc1cf71da530228793facd
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCrGf/ywK+sNU5EO8RAi9EAJ0eQ++cwSgn5j2PHiTvF7r3JNiv4gCePY+X
do12pUvCczyBKVCoBN7y/uI=
=YtzI
-----END PGP SIGNATURE-----
2005-06-12 08:51:11 -08:00
mpm@selenic.com
1132fd6ccd minor hgk fixes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

minor hgk fixes

From: Chris Mason <mason@suse.com>

hgk was missing the last commit when reading the output from hgit rev-list -c

Some how a debugging puts snuck into the hgk I sent out.  Remove it:

manifest hash: cc0ec1d46fbbe9b7e9bf6404f9dbe2ec787811ba
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCp13mywK+sNU5EO8RAnkqAJ49W/i1mwt38Yws4t0mEQeKttsOSQCgi9fS
/t42Uy0Qj9yeVppGPLel/bI=
=eIrI
-----END PGP SIGNATURE-----
2005-06-08 13:06:46 -08:00
mpm@selenic.com
9cb4207872 Mark the usual things executable
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mark the usual things executable

manifest hash: e55dde46fd1a97ce338c1ac71278b67ca9d96bf7
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCpz5RywK+sNU5EO8RAnypAJwLpjrQ09nMSJUELtCondHI0fvuVACfQu2J
mFi9D3L9ULGO457NWB4h3kY=
=3bcD
-----END PGP SIGNATURE-----
2005-06-08 10:52:01 -08:00
mpm@selenic.com
22f0ea87bb [PATCH] hgk should parse dates in the diff output
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[PATCH] hgk should parse dates in the diff output

hgk doesn't deal well with the difflib style diffs, it expects the filename
to be the last thing on the line.  This patch fixes the regexp to stop
reading the filename at the first tab.

Signed-off-by: Chris Mason <mason@suse.com>

manifest hash: 9c5bcf427455dcf306ab6f91b1986723caa83f36
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCpl/HywK+sNU5EO8RAgAjAKCOuZsRtJDbdurTQry+7krtLTtRQQCfXLuN
LZEFkcOGS0jiAC6vci/RLJ0=
=jkr1
-----END PGP SIGNATURE-----
2005-06-07 19:02:31 -08:00
mpm@selenic.com
4948aa3074 Initial import of hgit and hgk
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Initial import of hgit and hgk

Support for git compatibility sufficient to run gitk on top of hg
repositories.  This includes:

hgit diff-tree
hgit rev-list
hgit rev-tree
hgit cat-file

Signed-off-by: Chris Mason <mason@suse.com>

hgk is a slightly modified version of gitk1.1 from Paul Mackerras.  It has
been changed to use hgit commands, and has support for the extended
rev-list -c to speed up the commit listing.

Signed-off-by: Chris Mason <mason@suse.com>

manifest hash: 5a4a27135bc85bab2a3a1e35018a08a985d8d146
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCpVQ4ywK+sNU5EO8RAl3QAJ9p6VyZ8fCHfgt0p8ksgL2P215DXQCfZU47
d+u5GpZvkOTOc3+LU3Ny3nE=
=rjsC
-----END PGP SIGNATURE-----
2005-06-07 00:00:56 -08:00