Show More
@@ -253,7 +253,7 b' class httprepository(remoterepository):' | |||||
253 | if user: |
|
253 | if user: | |
254 | ui.debug(_('http auth: user %s, password %s\n') % |
|
254 | ui.debug(_('http auth: user %s, password %s\n') % | |
255 | (user, passwd and '*' * len(passwd) or 'not set')) |
|
255 | (user, passwd and '*' * len(passwd) or 'not set')) | |
256 |
passmgr.add_password(None, |
|
256 | passmgr.add_password(None, self._url, user, passwd or '') | |
257 |
|
257 | |||
258 | handlers.extend((urllib2.HTTPBasicAuthHandler(passmgr), |
|
258 | handlers.extend((urllib2.HTTPBasicAuthHandler(passmgr), | |
259 | httpdigestauthhandler(passmgr))) |
|
259 | httpdigestauthhandler(passmgr))) |
@@ -175,6 +175,7 b' class sshrepository(remoterepository):' | |||||
175 | def unbundle(self, cg, heads, source): |
|
175 | def unbundle(self, cg, heads, source): | |
176 | d = self.call("unbundle", heads=' '.join(map(hex, heads))) |
|
176 | d = self.call("unbundle", heads=' '.join(map(hex, heads))) | |
177 | if d: |
|
177 | if d: | |
|
178 | # remote may send "unsynced changes" | |||
178 | self.raise_(repo.RepoError(_("push refused: %s") % d)) |
|
179 | self.raise_(repo.RepoError(_("push refused: %s") % d)) | |
179 |
|
180 | |||
180 | while 1: |
|
181 | while 1: | |
@@ -188,14 +189,15 b' class sshrepository(remoterepository):' | |||||
188 | self.pipeo.flush() |
|
189 | self.pipeo.flush() | |
189 |
|
190 | |||
190 | self.readerr() |
|
191 | self.readerr() | |
191 | d = self.pipei.readline() |
|
|||
192 | if d != '\n': |
|
|||
193 | return 1 |
|
|||
194 |
|
||||
195 | l = int(self.pipei.readline()) |
|
192 | l = int(self.pipei.readline()) | |
196 | r = self.pipei.read(l) |
|
193 | r = self.pipei.read(l) | |
197 |
if |
|
194 | if r: | |
198 | return 1 |
|
195 | # remote may send "unsynced changes" | |
|
196 | self.raise_(hg.RepoError(_("push failed: %s") % r)) | |||
|
197 | ||||
|
198 | self.readerr() | |||
|
199 | l = int(self.pipei.readline()) | |||
|
200 | r = self.pipei.read(l) | |||
199 | return int(r) |
|
201 | return int(r) | |
200 |
|
202 | |||
201 | def addchangegroup(self, cg, source, url): |
|
203 | def addchangegroup(self, cg, source, url): |
@@ -136,8 +136,9 b' def install_hg():' | |||||
136 |
|
136 | |||
137 | os.chdir("..") # Get back to hg root |
|
137 | os.chdir("..") # Get back to hg root | |
138 | cmd = ('%s setup.py clean --all' |
|
138 | cmd = ('%s setup.py clean --all' | |
139 |
' install --force --home="%s" --install-lib="%s" |
|
139 | ' install --force --home="%s" --install-lib="%s"' | |
140 | % (sys.executable, INST, PYTHONDIR, installerrs)) |
|
140 | ' --install-scripts="%s" >%s 2>&1' | |
|
141 | % (sys.executable, INST, PYTHONDIR, BINDIR, installerrs)) | |||
141 | vlog("# Running", cmd) |
|
142 | vlog("# Running", cmd) | |
142 | if os.system(cmd) == 0: |
|
143 | if os.system(cmd) == 0: | |
143 | if not verbose: |
|
144 | if not verbose: |
General Comments 0
You need to be logged in to leave comments.
Login now