changeset 786:2f6507057987

git_handler: rename getnewgitcommits to get_git_incoming getnewgitcommits isn't PEP8 and is kind of awkward -- what does 'new' mean?
author Siddharth Agarwal <sid0@fb.com>
date Wed, 15 Oct 2014 16:06:46 -0700
parents 4f425a1be4f3
children 3c3a6505ef8d
files hggit/git_handler.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/hggit/git_handler.py
+++ b/hggit/git_handler.py
@@ -368,7 +368,7 @@
         else:
             reqrefs = refs
 
-        commits = [bin(c) for c in self.getnewgitcommits(reqrefs)[1]]
+        commits = [bin(c) for c in self.get_git_incoming(reqrefs)[1]]
 
         b = overlayrepo(self, commits, refs)
 
@@ -660,7 +660,7 @@
 
         return message, git_extra
 
-    def getnewgitcommits(self, refs):
+    def get_git_incoming(self, refs):
         # import heads and fetched tags as remote references
         todo = []
         done = set()
@@ -720,7 +720,7 @@
         return commit_cache, commits
 
     def import_git_objects(self, remote_name=None, refs=None):
-        commit_cache, commits = self.getnewgitcommits(refs)
+        commit_cache, commits = self.get_git_incoming(refs)
         # import each of the commits, oldest first
         total = len(commits)
         if total: