##// END OF EJS Templates
share: backout fd903f89e42b, except the test...
Matt Harbison -
r18511:798ab869 stable
parent child Browse files
Show More
@@ -171,14 +171,11 b' def share(ui, source, dest=None, update='
171 171 r = repository(ui, root)
172 172
173 173 default = srcrepo.ui.config('paths', 'default')
174 if not default:
175 # set default to source for being able to clone subrepos
176 default = os.path.abspath(util.urllocalpath(origsource))
177 fp = r.opener("hgrc", "w", text=True)
178 fp.write("[paths]\n")
179 fp.write("default = %s\n" % default)
180 fp.close()
181 r.ui.setconfig('paths', 'default', default)
174 if default:
175 fp = r.opener("hgrc", "w", text=True)
176 fp.write("[paths]\n")
177 fp.write("default = %s\n" % default)
178 fp.close()
182 179
183 180 if update:
184 181 r.ui.status(_("updating working directory\n"))
@@ -726,10 +726,8 b' Check that share works with subrepo'
726 726 $ test -f ../shared/subrepo-1/.hg/sharedpath
727 727 [1]
728 728 $ hg -R ../shared in
729 comparing with $TESTTMP/subrepo-status (glob)
730 searching for changes
731 no changes found
732 [1]
729 abort: repository default not found!
730 [255]
733 731 $ hg -R ../shared/subrepo-2 showconfig paths
734 732 paths.default=$TESTTMP/subrepo-status/subrepo-2
735 733 $ hg -R ../shared/subrepo-1 sum --remote
General Comments 0
You need to be logged in to leave comments. Login now