remote-helpers: trivial cleanups
No functional changes. Typos, unused variables, redundant operations, and white-spaces. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
c8c82b1ba3
commit
75301a4588
@ -94,7 +94,7 @@ class Marks:
|
|||||||
return self.last_mark
|
return self.last_mark
|
||||||
|
|
||||||
def is_marked(self, rev):
|
def is_marked(self, rev):
|
||||||
return str(rev) in self.marks
|
return rev in self.marks
|
||||||
|
|
||||||
def new_mark(self, rev, mark):
|
def new_mark(self, rev, mark):
|
||||||
self.marks[rev] = mark
|
self.marks[rev] = mark
|
||||||
@ -224,7 +224,7 @@ def export_files(tree, files):
|
|||||||
else:
|
else:
|
||||||
mode = '100644'
|
mode = '100644'
|
||||||
|
|
||||||
# is the blog already exported?
|
# is the blob already exported?
|
||||||
if h in filenodes:
|
if h in filenodes:
|
||||||
mark = filenodes[h]
|
mark = filenodes[h]
|
||||||
final.append((mode, mark, path))
|
final.append((mode, mark, path))
|
||||||
@ -521,7 +521,7 @@ def c_style_unescape(string):
|
|||||||
return string
|
return string
|
||||||
|
|
||||||
def parse_commit(parser):
|
def parse_commit(parser):
|
||||||
global marks, blob_marks, bmarks, parsed_refs
|
global marks, blob_marks, parsed_refs
|
||||||
global mode
|
global mode
|
||||||
|
|
||||||
parents = []
|
parents = []
|
||||||
@ -643,6 +643,7 @@ def do_export(parser):
|
|||||||
wt = repo.bzrdir.open_workingtree()
|
wt = repo.bzrdir.open_workingtree()
|
||||||
wt.update()
|
wt.update()
|
||||||
print "ok %s" % ref
|
print "ok %s" % ref
|
||||||
|
|
||||||
print
|
print
|
||||||
|
|
||||||
def do_capabilities(parser):
|
def do_capabilities(parser):
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
# For remote repositories a local clone is stored in
|
# For remote repositories a local clone is stored in
|
||||||
# "$GIT_DIR/hg/origin/clone/.hg/".
|
# "$GIT_DIR/hg/origin/clone/.hg/".
|
||||||
|
|
||||||
from mercurial import hg, ui, bookmarks, context, util, encoding, node, error, extensions
|
from mercurial import hg, ui, bookmarks, context, encoding, node, error, extensions
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
|
Reference in New Issue
Block a user