Show More
@@ -2012,8 +2012,7 b' def debugbuilddag(ui, repo, text=None,' | |||
|
2012 | 2012 | norepo=True) |
|
2013 | 2013 | def debugbundle(ui, bundlepath, all=None, **opts): |
|
2014 | 2014 | """lists the contents of a bundle""" |
|
2015 |
|
|
|
2016 | try: | |
|
2015 | with hg.openpath(ui, bundlepath) as f: | |
|
2017 | 2016 | gen = exchange.readbundle(ui, f, bundlepath) |
|
2018 | 2017 | if isinstance(gen, bundle2.unbundle20): |
|
2019 | 2018 | return _debugbundle2(ui, gen, all=all, **opts) |
@@ -2060,8 +2059,6 b' def debugbundle(ui, bundlepath, all=None' | |||
|
2060 | 2059 | node = chunkdata['node'] |
|
2061 | 2060 | ui.write("%s\n" % hex(node)) |
|
2062 | 2061 | chain = node |
|
2063 | finally: | |
|
2064 | f.close() | |
|
2065 | 2062 | |
|
2066 | 2063 | def _debugbundle2(ui, gen, **opts): |
|
2067 | 2064 | """lists the contents of a bundle2""" |
General Comments 0
You need to be logged in to leave comments.
Login now