Re: cvs2git: redundant M-lines

"Matwey V. Kornilov" <[email protected]> Thu, 3 Jul 2014 10:31:25 +0400
Newsgroups gmane.comp.version-control.subversion.cvs2svn.devel
Message-ID <CAJs94EZnnG5JA1LzRUJPfN1J+9sOpQxcXhf7tVNAcpT4c4bJdA@mail.gmail.com>
Hi,

I think something like the following. But I am not sure whether it
breaks something else.

Index: git_output_option.py
===================================================================
--- git_output_option.py        (revision 5458)
+++ git_output_option.py        (working copy)
@@ -64,7 +64,10 @@

   def branch_file(self, cvs_symbol):
     MirrorUpdater.branch_file(self, cvs_symbol)
-    self._modify_file(cvs_symbol, post_commit=False)
+    blob1 = cvs_symbol.revision_reader_token
+    blob2 = cvs_symbol.get_cvs_revision_source(Ctx()._cvs_items_db).revision_reader_token
+    if blob1 != blob2:
+      self._modify_file(cvs_symbol, post_commit=False)

   def finish(self):
     MirrorUpdater.finish(self)




-- 
With best regards,
Matwey V. Kornilov
http://blog.matwey.name
xmpp:[email protected]

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

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