[PATCH] call reposetup for repositories returned from peer (issue2864)

David Golub golubdr at gmail.com
Fri Jun 24 10:49:48 CDT 2011


# HG changeset patch
# User David Golub
# Date 1308929952 14400
# Branch stable
# Node ID e4301ba5356e383a1440bb5e8bb1363e4be8f114
# Parent  b9faf94ee1969f41b89edfc4df809adad582ab4c
call reposetup for repositories returned from peer (issue2864)

Extension setup functions were not being called when repositories were
obtained using the peer function instead of the repository function.

diff -r b9faf94ee196 -r e4301ba5356e mercurial/hg.py
--- a/mercurial/hg.py	Wed Jun 22 01:55:00 2011 +0200
+++ b/mercurial/hg.py	Fri Jun 24 11:39:12 2011 -0400
@@ -101,7 +101,7 @@
 def peer(ui, opts, path, create=False):
     '''return a repository peer for the specified path'''
     rui = remoteui(ui, opts)
-    return _peerlookup(path).instance(rui, path, create)
+    return repository(rui, path, create)
 
 def defaultdest(source):
     '''return default destination of clone if none is given'''


More information about the Mercurial-devel mailing list