[PATCH 1 of 2] subrepo: forward the push to argument into _abssource

Edouard Gomez ed.gomez at free.fr
Wed Mar 10 08:25:53 CST 2010


# HG changeset patch
# User Edouard Gomez <ed.gomez at free.fr>
# Date 1268171437 -3600
# Node ID 383f2a87901a9f9c1f46dfb92421098e38dc1b26
# Parent  6227c8d669d52e9e29daa72b0cc9c072acc20ac4
subrepo: forward the push to argument into _abssource

This make sure parent paths.default-push is used during
a relative subrepo push.

diff --git a/mercurial/subrepo.py b/mercurial/subrepo.py
--- a/mercurial/subrepo.py
+++ b/mercurial/subrepo.py
@@ -131,7 +131,7 @@
         source = repo._subsource
         if source.startswith('/') or '://' in source:
             return source
-        parent = _abssource(repo._subparent)
+        parent = _abssource(repo._subparent, push)
         if '://' in parent:
             if parent[-1] == '/':
                 parent = parent[:-1]


More information about the Mercurial-devel mailing list