Victor Rodriguez | 21 Jan 15:16
Picon

Mercurial and xhg-log

Hello,

I think I have a problem using the mercurial integration.  After
running dvc-status, using 'l' or 'L' brings up the log for the tree,
except that it brings up *all* the log.  This is a problem since I
have a repository with a lot of history.

I found out that if I run xhg-log directly, for example using (xhg-log
-5), then hg log will be run with the "-l 5" parameter, displaying
only 5 log entries, which is exactly what I need.  The problem is that
I cannot figure out how to pass this parameter to xhg-log, or to set
it up permanently.  Setting the value of dvc-log-last-n does not have
any effect.

I'll appreciate any help.  At work, Emacs is losing the battle against
tortoise-hg! :-P

Cheers,

Victor Rodriguez.

ps. I'm running "GNU Emacs 23.1.91.5" and DVC revno 570.
Thierry Volpiatto | 21 Jan 19:44
Face
Picon
Gravatar

Re: Mercurial and xhg-log

Victor Rodriguez <victorr <at> gmail.com> writes:

> Hello,
>
> I think I have a problem using the mercurial integration.  After
> running dvc-status, using 'l' or 'L' brings up the log for the tree,
> except that it brings up *all* the log.  This is a problem since I
> have a repository with a lot of history.
>
> I found out that if I run xhg-log directly, for example using (xhg-log
> -5), then hg log will be run with the "-l 5" parameter, displaying
> only 5 log entries, which is exactly what I need.  The problem is that
> I cannot figure out how to pass this parameter to xhg-log, or to set
> it up permanently.  Setting the value of dvc-log-last-n does not have
> any effect.

Use C-u -5 M-x xhg-log (or C-x V l) ;-)

> I'll appreciate any help.  At work, Emacs is losing the battle against
> tortoise-hg! :-P
>
> Cheers,
>
> Victor Rodriguez.
>
> ps. I'm running "GNU Emacs 23.1.91.5" and DVC revno 570.

--

-- 
Thierry Volpiatto
(Continue reading)

Stephen Leake | 21 Jan 21:24
Favicon

Re: Mercurial and xhg-log

Thierry Volpiatto <thierry.volpiatto <at> gmail.com> writes:

> Victor Rodriguez <victorr <at> gmail.com> writes:
>
>> Hello,
>>
>> I think I have a problem using the mercurial integration.  After
>> running dvc-status, using 'l' or 'L' brings up the log for the tree,
>> except that it brings up *all* the log.  This is a problem since I
>> have a repository with a lot of history.
>>
>> I found out that if I run xhg-log directly, for example using (xhg-log
>> -5), then hg log will be run with the "-l 5" parameter, displaying
>> only 5 log entries, which is exactly what I need.  The problem is that
>> I cannot figure out how to pass this parameter to xhg-log, or to set
>> it up permanently.  Setting the value of dvc-log-last-n does not have
>> any effect.

In dvc-status mode, L runs dvc-log, which is declared as:

(defun dvc-log (&optional path last-n)
  "Display the brief log for PATH (a file-name; default current
buffer file name; nil means entire tree; prefix arg means prompt
for tree), LAST-N entries (default `dvc-log-last-n'; all if
nil). Use `dvc-changelog' for the full log."
  (interactive (list (if current-prefix-arg nil (buffer-file-name))
                     dvc-log-last-n))

'last-n' should always default to dvc-log-last-n.

(Continue reading)

Stefan Reichör | 21 Jan 21:27
Picon

[commit] rev 571: Patch from Thierry Volpiatto: dvc-bookmarks.el: New function dvc-bookmarks-show-or-hide-all-subtrees (bound to Ha)

Committed revision 571 to http://bzr.xsteve.at/dvc/

Patch from Thierry Volpiatto: dvc-bookmarks.el: New function
dvc-bookmarks-show-or-hide-all-subtrees (bound to Ha)
Thierry Volpiatto | 21 Jan 22:42
Face
Picon
Gravatar

Re: Mercurial and xhg-log

Stephen Leake <stephen_leake <at> stephe-leake.org> writes:

> Thierry Volpiatto <thierry.volpiatto <at> gmail.com> writes:
>
>> Victor Rodriguez <victorr <at> gmail.com> writes:
>>
>>> Hello,
>>>
>>> I think I have a problem using the mercurial integration.  After
>>> running dvc-status, using 'l' or 'L' brings up the log for the tree,
>>> except that it brings up *all* the log.  This is a problem since I
>>> have a repository with a lot of history.
>>>
>>> I found out that if I run xhg-log directly, for example using (xhg-log
>>> -5), then hg log will be run with the "-l 5" parameter, displaying
>>> only 5 log entries, which is exactly what I need.  The problem is that
>>> I cannot figure out how to pass this parameter to xhg-log, or to set
>>> it up permanently.  Setting the value of dvc-log-last-n does not have
>>> any effect.
>
> In dvc-status mode, L runs dvc-log, which is declared as:
>
> (defun dvc-log (&optional path last-n)
>   "Display the brief log for PATH (a file-name; default current
> buffer file name; nil means entire tree; prefix arg means prompt
> for tree), LAST-N entries (default `dvc-log-last-n'; all if
> nil). Use `dvc-changelog' for the full log."
>   (interactive (list (if current-prefix-arg nil (buffer-file-name))
>                      dvc-log-last-n))
>
(Continue reading)


Gmane