Jonathan Kotta
54a1763f72
allow toggling when the cursor is on the correct line instead of just the filename text in hg-commit-toggle-file
2009-05-13 13:07:43 -05:00
Bryan O'Sullivan
548c365ad9
mercurial.el: note new Emacs VC mode support
2008-03-27 12:52:41 -07:00
NIIMI Satoshi
33f14d7efe
mercurial.el: mark-marker() returns non-nil with no active mark on GNU Emacs
2007-10-11 06:10:45 +09:00
NIIMI Satoshi
471e00333a
mercurial.el, mq.el: remove runtime dependencies on CL package
...
* (require 'cl) at compile-time
* don't use map()
2007-10-11 05:58:54 +09:00
Thomas Arendsen Hein
a799589be4
merge with crew-stable
2007-08-07 10:28:14 +02:00
Thomas Arendsen Hein
001b7980f8
Remove trailing spaces
2007-08-07 10:24:33 +02:00
jon.christopher@Rigaku.com
db9543cd23
Re: mercurial.el and hg-version-other-window
...
hg-version-other window is unimplemented in mercurial.el. The version
below works for me, YMMV.
2007-07-14 11:27:58 -05:00
NIIMI Satoshi
ad08d10949
mercurial.el: ignore errors on hg-after-save-hook()
...
Don't signal an error even if running hg command fails. Otherwise,
succeeding hooks won't be called.
2007-05-22 07:24:06 +09:00
NIIMI Satoshi
2d751dee3c
mercurial.el: change default log range to tip:0
...
If the tip revision is smaller than hg-rev-completion-limit (defaults
to 100), "hg log -r tip:-100" fails.
Since performance does not differ between "hg log -l 50 -r tip:0" and
"hg log -l 50 -r tip:-100" even on large repository, default range can
be changed from "tip:-100" to "tip:0" without any drawbacks.
2007-05-22 08:05:16 +09:00
NIIMI Satoshi
1c67345a13
mercurial.el: fix error on hg-read-rev() with small tip, and cleanups
...
* Fix error if tip revision is smaller than hg-rev-completion-limit
If tip revision is 10, "hg log -r -100:tip" fails.
* Remove dependencies on cl package at runtime
Quote from GNU Emacs Lisp Reference Manual, Emacs Lisp Coding Conventions:
> * Please don't require the `cl' package of Common Lisp extensions at
> run time. Use of this package is optional, and it is not part of
> the standard Emacs namespace. If your package loads `cl' at run
> time, that could cause name clashes for users who don't use that
> package.
* Check XEmacs at compile time
Since byte-compiled file is not portable between GNU Emacs and
XEmacs, checking type of emacs can be done at compile time. This
reduces byte-compiler warnings.
* Defvar variables binded dynamically and used across functions
* Combine status output string to state symbol alist into a variable,
and use char instead of string for key of state alist
* Make hg-view-mode as minor-mode
* Define keymaps as conventions
2007-05-07 21:44:11 +09:00
NIIMI Satoshi
30fab1e0c5
mercurial.el: don't raise an error from find-file-hook
...
find-file() shouldn't fail even if unreadable .hg directory is exists.
Not enabling hg-mode is sufficient for that senario.
2007-05-05 15:56:49 +09:00
NIIMI Satoshi
819c1ff3d3
mercurial.el: move defmacro of hg-do-across-repo before use
...
Macros must be defined before use to be byte-compiled properly.
2007-05-05 15:50:40 +09:00
Brendan Cully
15abedecdd
Unconfuse font-lock
2007-05-07 08:42:48 -07:00
Bryan O'Sullivan
e55bd65d54
mercurial.el: deal with more vagaries of "hg status".
...
If we run "hg status" on a file that does not exist, it prints an error
message. Attempt to extract the name of the file.
2006-08-22 15:15:52 -07:00
Bryan O'Sullivan
01df2e50e5
mercurial.el: add hg-cwd
2006-08-22 14:03:10 -07:00
Bryan O'Sullivan
9447cded78
mercurial.el: speed up mode line updates.
2006-08-22 14:02:43 -07:00
Bryan O'Sullivan
154114b444
mercurial.el: add hg-status.
2006-08-22 11:37:18 -07:00
Bryan O'Sullivan
4d1786ec1f
mercurial.el: use parents in modeline, not tip
2006-08-22 11:36:58 -07:00
Bryan O'Sullivan
c4a476da55
mercurial.el: fix hg-chomp.
2006-08-22 11:24:59 -07:00
Bryan O'Sullivan
0127d671dc
mercurial.el: fix calls to goto-char.
2006-08-22 08:54:19 -07:00
Bryan O'Sullivan
093b29e224
mercurial.el: get rid of unportable, unperformant use of replace-regexp.
2006-08-22 08:53:37 -07:00
Giorgos Keramidas
95ed16f229
Use cached hg-root-dir instead of rediscovering
...
by a second call to (hg-root). We have the path
we need already as the value of hg-root-dir.
2006-08-13 20:21:13 +03:00
Giorgos Keramidas
1f91b78691
avoid calling (cd ...) with `nil' as a directory name
...
When (hg-root) cannot determine the current Mercurial root, print an
error message instead of trying to evaluate (cd nil).
2006-07-30 09:37:08 +03:00
FUJIWARA Katsunori
feed3e771b
Emacs: apply "expand-filename" on "default-directory".
...
"default-directory" may has home directory("~") relative path in some
runtime environment(or emacs revision ?), so expand-filename is
required.
2006-07-22 23:35:16 +09:00
FUJIWARA Katsunori
73f0f2e2ee
Emacs: apply kill-local-variable instead of make-local-variable to FORGET
2006-07-22 23:30:19 +09:00
Vadim Gelfer
82a6d82061
mercurial.el: fix misleading indent of code.
...
code was correct, indent was wrong.
2006-06-29 10:35:15 -07:00
Vadim Gelfer
ad8c158ca2
mercurial.el: inhibit backups for files managed by mercurial
2006-06-29 10:27:09 -07:00
Vadim Gelfer
77cf84bc90
merge emacs changes.
2006-06-18 21:15:01 -07:00
Vadim Gelfer
6d81af657d
merge with crew.
2006-06-18 21:04:42 -07:00
FUJIWARA Katsunori
42626859e7
Emacs: follow the revision usage policy of "hg diff" command.
...
This patche makes "parent" as default revision of diff command.
2006-06-18 04:13:33 +09:00
FUJIWARA Katsunori
645be5112b
Emacs: change directory of output buffer to the root of the repository.
2006-06-18 04:02:56 +09:00
FUJIWARA Katsunori
a0c3415d1d
Emacs: use default-directory' if
buffer-file-name' is null.
...
This patch allows you to co-operate with Mercurial in dired buffer.
2006-06-18 03:46:00 +09:00
FUJIWARA Katsunori
778100dd4b
Emacs: use delete-region instead of kill-* functions.
...
This patch eliminates `kill-line' which taints kill-ring,
and `kill-entire-line' which is specific for XEmacs.
2006-06-17 00:06:28 +09:00
Vadim Gelfer
059e0b08c7
merge emacs patches.
2006-05-18 22:46:27 -07:00
FUJIWARA Katsunori
db4f956aa0
Emacs: separate limitations of revision range and shown changesets.
...
For revision range limitation,
use "-r" opt with range notation at "hg log" invocation, and
use hg-rev-completion-limit as default value.
For shown changesets limitation,
use "-l" opt at "hg log" invocation, and
use hg-log-limit as default value.
2006-05-18 22:44:36 -07:00
FUJIWARA Katsunori
b1ae07c169
Emacs: adapt read-file-name invocation for (non-X)Emacs 21.4.
...
this patch deters hg-read-file-name from passing hg-file-history to
read-file-name as 6th parameter in non-X Emacs environment.
2006-05-18 22:43:09 -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
Thomas Arendsen Hein
455a56454d
Cleanup of tabs and trailing spaces.
2005-09-21 07:56:19 +02:00
Bryan O'Sullivan
6745f74e0f
mercurial.el: implement hg-pull, and stub in hg-update.
2005-09-09 22:07:10 -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
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