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