mercurial/commands.py
changeset 3704 9c1737a3e254
parent 3680 69cf255a55a1
child 3706 0d810798acb1
equal deleted inserted replaced
3703:e674cae8efee 3704:9c1737a3e254
   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():