Documentations and hackers expectation suggest that r1 and r2 in
xhg-log are supposed to define a range of revisions.  With the applied
patch it actually works...  ;-)

cheers
sascha

Please change the Subject header to a concise description of your patch.
Please describe your patch between the LOG-START and LOG-END markers:
<<LOG-START>>
Fix range selection for xhg-log.
<<LOG-END>>



[VERSION] dvc-dev-bzr

Bazaar (bzr) 0.17.0

Emacs  : GNU Emacs 22.1.50.18 (i686-pc-linux-gnu, GTK+ Version 2.10.11)
 of 2007-08-21 on kenny
-- 
Sascha Wilde
Hauptfunktion einer GUI ist es IMHO, die dadurch verlorene Zeit durch
einen höheren Spaß-Faktor zu kompensieren. Essentiell ein
Computerspiel.  --  Rainer Weikusat in d.c.o.u.d
=== modified file 'lisp/xhg.el'
--- lisp/xhg.el	2007-08-20 19:24:06 +0000
+++ lisp/xhg.el	2007-08-21 11:07:05 +0000
@@ -139,14 +139,14 @@
         (cur-dir default-directory))
     (when r1
       (when (numberp r1)
-        (setq r1 (number-to-string r1)))
-      (when (> (length r1) 0)
-        (setq command-list (append command-list (list "-r" r1)))))
+        (setq r1 (number-to-string r1))))
     (when r2
       (when (numberp r2)
-        (setq r2 (number-to-string r2)))
-      (when (> (length r2) 0)
-        (setq command-list (append command-list (list "-r" r2)))))
+        (setq r2 (number-to-string r2))))
+    (if (and (> (length r2) 0) (> (length r1) 0))
+	(setq command-list (append command-list (list "-r" (concat r2 ":" r1))))
+      (when (> (length r1) 0)
+	(setq command-list (append command-list (list "-r" r1)))))
     (when show-patch
       (setq command-list (append command-list (list "-p"))))
     (dvc-switch-to-buffer-maybe buffer)

_______________________________________________
Dvc-dev mailing list
[email protected]
https://mail.gna.org/listinfo/dvc-dev

Reply via email to