Merge branch 'fc/remote-hg'

* fc/remote-hg:
  remote-hg: strip extra newline
  remote-hg: use marks instead of inlined files
  remote-hg: small performance improvement
  remote-hg: allow refs with spaces
  remote-hg: don't update bookmarks unnecessarily
  remote-hg: add support for schemes extension
  remote-hg: improve email sanitation
  remote-hg: add custom local tag write code
  remote-hg: write tags in the appropriate branch
  remote-hg: custom method to write tags
  remote-hg: add support for tag objects
  remote-hg: add branch_tip() helper
  remote-hg: properly mark branches up-to-date
  remote-hg: use python urlparse
  remote-hg: safer bookmark pushing
  remote-helpers: avoid has_key
This commit is contained in:
Junio C Hamano
2013-04-26 15:19:03 -07:00
3 changed files with 141 additions and 36 deletions

View File

@ -94,7 +94,7 @@ class Marks:
return self.last_mark
def is_marked(self, rev):
return self.marks.has_key(rev)
return str(rev) in self.marks
def new_mark(self, rev, mark):
self.marks[rev] = mark