mercurial/commands.py
changeset 1736 50de0887bbcd
parent 1734 9488d53233b5
child 1739 57de7e1a81d2
child 1740 f95654385065
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -622,7 +622,7 @@ def bundle(ui, repo, fname, dest="defaul
     dest = ui.expandpath(dest, repo.root)
     other = hg.repository(ui, dest)
     o = repo.findoutgoing(other)
-    cg = repo.changegroup(o)
+    cg = repo.changegroup(o, 'bundle')
 
     try:
         f.write("HG10")
@@ -1999,7 +1999,7 @@ def serve(ui, repo, **opts):
                 arg, roots = getarg()
                 nodes = map(bin, roots.split(" "))
 
-                cg = repo.changegroup(nodes)
+                cg = repo.changegroup(nodes, 'serve')
                 while 1:
                     d = cg.read(4096)
                     if not d: