changeset 204:4734153365ac

revert the changes made in 405a915bf352 and 8bfa8aa6b68f Merges can be done in either git or hg, so we should not add information in the git log.
author Abderrahim Kitouni <a.kitouni@gmail.com>
date Mon, 29 Jun 2009 23:20:37 +0100
parents 104a4fd6a0af
children a3914d6a04a7
files git_handler.py hgrepo.py
diffstat 2 files changed, 4 insertions(+), 25 deletions(-) [+]
line wrap: on
line diff
--- a/git_handler.py	Mon Jun 29 15:28:25 2009 +0100
+++ b/git_handler.py	Mon Jun 29 23:20:37 2009 +0100
@@ -268,15 +268,6 @@
                 add_extras = True
                 extra_message += "extra : " + key + " : " +  urllib.quote(value) + "\n"
 
-        # save file context listing on merge commit
-        if (len(parents) > 1):
-            add_extras = True
-            if len(ctx.files()) > 0:
-                for filenm in ctx.files():
-                    extra_message += "files : " + filenm + "\n"
-            else: # hack for 'fetch' extension idiocy
-                extra_message += "emptychangelog : true\n"
-
         if add_extras:
             commit['message'] += "\n--HG--\n" + extra_message
 
@@ -456,7 +447,7 @@
         # TODO : Do something less coarse-grained than try/except on the
         #        get_file call for removed files
 
-        (strip_message, hg_renames, hg_branch, force_files, extra) = self.extract_hg_metadata(commit.message)
+        (strip_message, hg_renames, hg_branch, extra) = self.extract_hg_metadata(commit.message)
 
         # get a list of the changed, added, removed files
         files = self.git.get_files_changed(commit)
@@ -554,7 +545,7 @@
         ctx = context.memctx(self.repo, (p1, p2), text, files, getfilectx,
                              author, date, extra)
 
-        node = self.repo.commit_import_ctx(ctx, pa, force_files)
+        node = self.repo.commit_import_ctx(ctx, pa)
 
         self.swap_out_encoding(oldenc)
 
@@ -784,7 +775,6 @@
         split = message.split("\n\n--HG--\n", 1)
         renames = {}
         extra = {}
-        files = []
         branch = False
         if len(split) == 2:
             message, meta = split
@@ -800,14 +790,10 @@
                     renames[after] = before
                 if command == 'branch':
                     branch = data
-                if command == 'files':
-                    files.append(data)
-                if command == 'emptychangelog':
-                    files = False
                 if command == 'extra':
                     before, after = data.split(" : ", 1)
                     extra[before] = urllib.unquote(after)
-        return (message, renames, branch, files, extra)
+        return (message, renames, branch, extra)
 
     def remote_name(self, remote):
         names = [name for name, path in self.paths if path == remote]
--- a/hgrepo.py	Mon Jun 29 15:28:25 2009 +0100
+++ b/hgrepo.py	Mon Jun 29 23:20:37 2009 +0100
@@ -105,14 +105,7 @@
             if text[-1] == "\n":
                 text = text[:-1]
             
-            file_list = []
-            if force_files == False:
-                file_list = []
-            else:
-                if force_files and len(force_files) > 0:
-                    file_list = force_files
-                else:
-                    file_list = changed + removed
+            file_list = changed + removed
             
             self.changelog.delayupdate()
             n = self.changelog.add(mn, file_list, text, trp, p1, p2,