[PATCH] Make cvs2git a little more consitent

Alex Bennee <[email protected]> Thu, 9 Dec 2010 15:44:55 +0000
Newsgroups gmane.comp.version-control.subversion.cvs2svn.devel
Message-ID <[email protected]>
Hi,

I've been experimenting with switching our incremental CVS repo
conversion from the unmaintained parsecvs to cvs2git. However I found
that subsequent imports would yield repos with different base commits.

This patch seems to improve the situation:

15:42 buildbot@vnms/x86_64 [cvs2svn.svn] >svn diff
Index: cvs2svn_lib/git_output_option.py
===================================================================
--- cvs2svn_lib/git_output_option.py    (revision 5306)
+++ cvs2svn_lib/git_output_option.py    (working copy)
@@ -408,7 +408,7 @@
               source_lod
               ),
           )
-      for cvs_symbol in cvs_symbols:
+      for cvs_symbol in sorted(cvs_symbols):
         log_msg += "\n    %s" % (cvs_symbol.cvs_file.cvs_path,)
     if is_initial_lod_creation:
       if len(cvs_files_to_delete):


-- 
Alex, homepage: http://www.bennee.com/~alex/
http://www.half-llama.co.uk

------------------------------------------------------
http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1667&dsMessageId=2689230

To unsubscribe from this discussion, e-mail: [[email protected]].