equal
deleted
inserted
replaced
330 |
330 |
331 if revs: |
331 if revs: |
332 cg = repo.changegroupsubset(o, revs, 'bundle') |
332 cg = repo.changegroupsubset(o, revs, 'bundle') |
333 else: |
333 else: |
334 cg = repo.changegroup(o, 'bundle') |
334 cg = repo.changegroup(o, 'bundle') |
335 changegroup.writebundle(cg, fname, "HG10") |
335 changegroup.writebundle(cg, fname, "HG10BZ") |
336 |
336 |
337 def cat(ui, repo, file1, *pats, **opts): |
337 def cat(ui, repo, file1, *pats, **opts): |
338 """output the latest or given revisions of files |
338 """output the latest or given revisions of files |
339 |
339 |
340 Print the specified files as they were at the given revision. |
340 Print the specified files as they were at the given revision. |
1322 try: |
1322 try: |
1323 fname = opts["bundle"] |
1323 fname = opts["bundle"] |
1324 if fname or not other.local(): |
1324 if fname or not other.local(): |
1325 # create a bundle (uncompressed if other repo is not local) |
1325 # create a bundle (uncompressed if other repo is not local) |
1326 cg = other.changegroup(incoming, "incoming") |
1326 cg = other.changegroup(incoming, "incoming") |
1327 type = other.local() and "HG10" or "HG10UN" |
1327 type = other.local() and "HG10BZ" or "HG10UN" |
1328 fname = cleanup = changegroup.writebundle(cg, fname, type) |
1328 fname = cleanup = changegroup.writebundle(cg, fname, type) |
1329 # keep written bundle? |
1329 # keep written bundle? |
1330 if opts["bundle"]: |
1330 if opts["bundle"]: |
1331 cleanup = None |
1331 cleanup = None |
1332 if not other.local(): |
1332 if not other.local(): |