##// END OF EJS Templates
py3: add b'' prefixes in tests/test-obsolete-divergent.t...
Pulkit Goyal -
r38464:afa96dd5 default
parent child Browse files
Show More
@@ -338,6 +338,7 test-obsolete-bundle-strip.t
338 test-obsolete-changeset-exchange.t
338 test-obsolete-changeset-exchange.t
339 test-obsolete-checkheads.t
339 test-obsolete-checkheads.t
340 test-obsolete-distributed.t
340 test-obsolete-distributed.t
341 test-obsolete-divergent.t
341 test-obsolete-tag-cache.t
342 test-obsolete-tag-cache.t
342 test-pager.t
343 test-pager.t
343 test-parents.t
344 test-parents.t
@@ -704,16 +704,16 Use scmutil.cleanupnodes API to create d
704 > from mercurial import registrar, scmutil
704 > from mercurial import registrar, scmutil
705 > cmdtable = {}
705 > cmdtable = {}
706 > command = registrar.command(cmdtable)
706 > command = registrar.command(cmdtable)
707 > @command('cleanup')
707 > @command(b'cleanup')
708 > def cleanup(ui, repo):
708 > def cleanup(ui, repo):
709 > def node(expr):
709 > def node(expr):
710 > unfi = repo.unfiltered()
710 > unfi = repo.unfiltered()
711 > rev = unfi.revs(expr).first()
711 > rev = unfi.revs(expr).first()
712 > return unfi.changelog.node(rev)
712 > return unfi.changelog.node(rev)
713 > with repo.wlock(), repo.lock(), repo.transaction('delayedstrip'):
713 > with repo.wlock(), repo.lock(), repo.transaction(b'delayedstrip'):
714 > mapping = {node('desc(B1)'): [node('desc(B3)')],
714 > mapping = {node(b'desc(B1)'): [node(b'desc(B3)')],
715 > node('desc(B3)'): [node('desc(B4)')]}
715 > node(b'desc(B3)'): [node(b'desc(B4)')]}
716 > scmutil.cleanupnodes(repo, mapping, 'test')
716 > scmutil.cleanupnodes(repo, mapping, b'test')
717 > EOF
717 > EOF
718
718
719 $ rm .hg/localtags
719 $ rm .hg/localtags
General Comments 0
You need to be logged in to leave comments. Login now