convert: report cvsps branchpoints sorted
authorMads Kiilerich <mads@kiilerich.com>
Tue, 15 Jan 2013 02:59:14 +0100
changeset 18375 cfbd33020066
parent 18374 942ecb55b1de
child 18376 13d73bf6be29
convert: report cvsps branchpoints sorted
hgext/convert/cvsps.py
tests/test-convert-cvsnt-mergepoints.t
--- 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