Commits

Greg Ward committed 6d758d5

hg: rename a function; misc cosmetic changes.

Comments (0)

Files changed (1)

 }
 
 typedef struct {
-	char nodeid[NODEID_LEN];
-	int rev;
-	int istip;
+    char nodeid[NODEID_LEN];
+    int rev;
+    int istip;
 } csinfo_t;
 
 //! get changeset info for the specified nodeid
 }
 
 static void
-update_nodeid(vccontext_t* context, result_t* result)
+read_parents(vccontext_t* context, result_t* result)
 {
     char buf[NODEID_LEN * 2];
     size_t readsize;
         // first parent
         if (sum_bytes((unsigned char *) buf, NODEID_LEN)) {
             p += put_nodeid(p, buf);
-
         }
 
         // second parent
     result_t* result = init_result();
     char buf[1024];
 
-    // prefers bookmark because it tends to be more informative
+    // prefer bookmark because it tends to be more informative
     if (read_first_line(".hg/bookmarks.current", buf, 1024) && buf[0]) {
         debug("read first line from .hg/bookmarks.current: '%s'", buf);
         result_set_branch(result, buf);
         result_set_branch(result, "default");
     }
 
-    update_nodeid(context, result);
+    read_parents(context, result);
 
     return result;
 }
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.