diff tests/test-branches.t @ 41064:4506f801e492

branches: add -r option to show branch name(s) of a given rev (issue5948) Differential Revision: https://phab.mercurial-scm.org/D5486
author Navaneeth Suresh <navaneeths1998@gmail.com>
date Mon, 24 Dec 2018 17:04:37 +0530
parents 89630d0b3e23
children 258821f2d465
line wrap: on
line diff
--- a/tests/test-branches.t	Mon Dec 10 20:06:58 2018 +0000
+++ b/tests/test-branches.t	Mon Dec 24 17:04:37 2018 +0530
@@ -157,6 +157,18 @@
   summary:     Adding b branch
   
 
+---- going to test branch listing by rev
+  $ hg branches -r0
+  default                        0:19709c5a4e75 (inactive)
+  $ hg branches -qr0
+  default
+--- now more than one rev
+  $ hg branches -r2:5
+  b                              4:aee39cd168d0
+  a                              5:d8cbc61dbaa6 (inactive)
+  $ hg branches -qr2:5
+  b
+  a
 ---- going to test branch closing
 
   $ hg branches