changeset 18375:cfbd33020066

convert: report cvsps branchpoints sorted
author Mads Kiilerich <mads@kiilerich.com>
date Tue, 15 Jan 2013 02:59:14 +0100
parents 942ecb55b1de
children 13d73bf6be29
files hgext/convert/cvsps.py tests/test-convert-cvsnt-mergepoints.t
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/cvsps.py	Tue Jan 15 02:59:14 2013 +0100
+++ b/hgext/convert/cvsps.py	Tue Jan 15 02:59:14 2013 +0100
@@ -827,7 +827,8 @@
             ui.write(('Tag%s: %s \n' % (['', 's'][len(cs.tags) > 1],
                                   ','.join(cs.tags) or '(none)')))
             if cs.branchpoints:
-                ui.write(('Branchpoints: %s \n') % ', '.join(cs.branchpoints))
+                ui.write(('Branchpoints: %s \n') %
+                         ', '.join(sorted(cs.branchpoints)))
             if opts["parents"] and cs.parents:
                 if len(cs.parents) > 1:
                     ui.write(('Parents: %s\n' %
--- a/tests/test-convert-cvsnt-mergepoints.t	Tue Jan 15 02:59:14 2013 +0100
+++ b/tests/test-convert-cvsnt-mergepoints.t	Tue Jan 15 02:59:14 2013 +0100
@@ -116,7 +116,7 @@
   Author: user
   Branch: HEAD
   Tag: (none) 
-  Branchpoints: MYBRANCH1_1, MYBRANCH1 
+  Branchpoints: MYBRANCH1, MYBRANCH1_1 
   Log:
   foo.txt