mercurial/commands.py
changeset 3706 0d810798acb1
parent 3704 9c1737a3e254
child 3707 67f44b825784
equal deleted inserted replaced
3705:e9d339d5d2d7 3706:0d810798acb1
  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 "HG10BZ" or "HG10UN"
  1327             bundletype = other.local() and "HG10BZ" or "HG10UN"
  1328             fname = cleanup = changegroup.writebundle(cg, fname, type)
  1328             fname = cleanup = changegroup.writebundle(cg, fname, bundletype)
  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():
  1333                 # use the created uncompressed bundlerepo
  1333                 # use the created uncompressed bundlerepo