Mercurial > hgsubversion
comparison hgsubversion/svnmeta.py @ 1549:8410a978c650
compathacks: be compatible with upstream 8a0cac20a1ad memfilectx change
See hg change 8a0cac20a1ad. Since the interface has changed
more than one time, switch to explicit keywords arguments to avoid
surprises.
Since hgsubversion targets hg >= 3.2.4, drop support for hg 3.0 and 3.1
here.
author | Jun Wu <quark@fb.com> |
---|---|
date | Tue, 19 Dec 2017 14:29:55 -0800 |
parents | 4dad506e51cc |
children | cff81f35b31e |
comparison
equal
deleted
inserted
replaced
1548:7f83be82d03f | 1549:8410a978c650 |
---|---|
798 tagdata = '' | 798 tagdata = '' |
799 tagdata += '%s %s\n' % (node.hex(hash), self.tagmap.get(tag, tag)) | 799 tagdata += '%s %s\n' % (node.hex(hash), self.tagmap.get(tag, tag)) |
800 def hgtagsfn(repo, memctx, path): | 800 def hgtagsfn(repo, memctx, path): |
801 assert path == '.hgtags' | 801 assert path == '.hgtags' |
802 return compathacks.makememfilectx(repo, | 802 return compathacks.makememfilectx(repo, |
803 memctx=memctx, | |
803 path=path, | 804 path=path, |
804 data=tagdata, | 805 data=tagdata, |
805 islink=False, | 806 islink=False, |
806 isexec=False, | 807 isexec=False, |
807 copied=False) | 808 copied=False) |
869 self.tags[tag] = node.bin(tagged), rev.revnum | 870 self.tags[tag] = node.bin(tagged), rev.revnum |
870 | 871 |
871 # add new changeset containing updated .hgtags | 872 # add new changeset containing updated .hgtags |
872 def fctxfun(repo, memctx, path): | 873 def fctxfun(repo, memctx, path): |
873 return compathacks.makememfilectx(repo, | 874 return compathacks.makememfilectx(repo, |
875 memctx=memctx, | |
874 path='.hgtags', | 876 path='.hgtags', |
875 data=src, | 877 data=src, |
876 islink=False, | 878 islink=False, |
877 isexec=False, | 879 isexec=False, |
878 copied=None) | 880 copied=None) |