]> thyrsus.com Git - rcs-fast-import.git/commitdiff
Warning about lost metadata.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 10 Nov 2010 21:56:12 +0000 (16:56 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 10 Nov 2010 21:56:12 +0000 (16:56 -0500)
rcs-fast-import

index 01cd98db7c5ec043cf994faae8661a606e6c4178..69bfdc0ea4be727710b891d9238930f4e8e6284e 100755 (executable)
@@ -36,9 +36,9 @@ If D, R, or C operations are present, the conversion will not round-trip
 properly (that is, rcs-fast-export | rcs-fast-import won't be an exact
 copy) with differences near deleted, renamed, and copied files.
 
-Warning: All tag metadata other than the name will be lost.  The person
-and date imputed to commits is from the author metadata if that exists,
-otherwise from the committer metadata.
+Warning: All tag metadata other than the name will be lost.  The date
+imputed to commits is from the author metadata if that exists, otherwise
+from the committer metadata. Committer and author information is lost.
 """
 
 import sys, os, getopt, re, cStringIO, subprocess, shutil
@@ -595,13 +595,15 @@ class RCS:
                     except OSError:
                         raise FatalException("can't create %s." % rcsdir)
                 if verbose >= DEBUG_SHUFFLE:
-                    announce("copying %s to %s" \
-                             % (copyfile, os.path.dirname(path) or '.'))
+                    announce("copying %s to %s" % (copyfile, path))
                 if not dryrun:
-                    shutil.copy(copyfile, os.path.dirname(path))
+                    shutil.copy(copyfile, path)
             responsible = event.authors[0] or event.committer
-            command = "ci "
-            command += " -w%s" % responsible.email
+            command = "ci -l"
+            # If we were going to try to match committer or author
+            # email addresses to local names, this would be the place
+            # to do it.  Not a whole lot of point in trying, though.
+            #command += " -w%s" % responsible.email
             command += " -d'%s'" % responsible.date.rfc822()
             command += " " + " ".join(inargs)
             with popen_or_die(command, "checkin", "w") as fp: