Show More
@@ -327,7 +327,7 b' class convert_cvs(converter_source):' | |||
|
327 | 327 | elif line.startswith("E "): |
|
328 | 328 | self.ui.warn(_("cvs server: %s\n") % line[2:]) |
|
329 | 329 | elif line.startswith("Remove"): |
|
330 |
|
|
|
330 | self.readp.readline() | |
|
331 | 331 | else: |
|
332 | 332 | raise util.Abort(_("unknown CVS response: %s") % line) |
|
333 | 333 |
@@ -142,7 +142,7 b' class mercurial_sink(converter_sink):' | |||
|
142 | 142 | p2 = parents.pop(0) |
|
143 | 143 | ctx = context.memctx(self.repo, (p1, p2), text, files.keys(), getfilectx, |
|
144 | 144 | commit.author, commit.date, extra) |
|
145 |
|
|
|
145 | self.repo.commitctx(ctx) | |
|
146 | 146 | text = "(octopus merge fixup)\n" |
|
147 | 147 | p2 = hex(self.repo.changelog.tip()) |
|
148 | 148 |
@@ -177,7 +177,7 b' class svn_source(converter_source):' | |||
|
177 | 177 | if at >= 0: |
|
178 | 178 | latest = int(url[at+1:]) |
|
179 | 179 | url = url[:at] |
|
180 |
except ValueError |
|
|
180 | except ValueError: | |
|
181 | 181 | pass |
|
182 | 182 | self.url = geturl(url) |
|
183 | 183 | self.encoding = 'UTF-8' # Subversion is always nominal UTF-8 |
@@ -1742,7 +1742,7 b' def clone(ui, source, dest=None, **opts)' | |||
|
1742 | 1742 | else: |
|
1743 | 1743 | patchespath = patchdir(sr) |
|
1744 | 1744 | try: |
|
1745 |
|
|
|
1745 | hg.repository(ui, patchespath) | |
|
1746 | 1746 | except error.RepoError: |
|
1747 | 1747 | raise util.Abort(_('versioned patch repository not found' |
|
1748 | 1748 | ' (see qinit -c)')) |
@@ -1768,7 +1768,7 b' def clone(ui, source, dest=None, **opts)' | |||
|
1768 | 1768 | update=False, |
|
1769 | 1769 | stream=opts['uncompressed']) |
|
1770 | 1770 | ui.note(_('cloning patch repo\n')) |
|
1771 |
|
|
|
1771 | hg.clone(ui, opts['patches'] or patchdir(sr), patchdir(dr), | |
|
1772 | 1772 |
|
|
1773 | 1773 |
|
|
1774 | 1774 | if dr.local(): |
@@ -230,7 +230,7 b' def patchbomb(ui, repo, *revs, **opts):' | |||
|
230 | 230 | def getpatches(revs): |
|
231 | 231 | for r in cmdutil.revrange(repo, revs): |
|
232 | 232 | output = cStringIO.StringIO() |
|
233 |
|
|
|
233 | patch.export(repo, [r], fp=output, | |
|
234 | 234 |
|
|
235 | 235 | yield output.getvalue().split('\n') |
|
236 | 236 |
@@ -216,7 +216,7 b' class transplanter:' | |||
|
216 | 216 | try: |
|
217 | 217 | files = {} |
|
218 | 218 | try: |
|
219 |
|
|
|
219 | patch.patch(patchfile, self.ui, cwd=repo.root, | |
|
220 | 220 |
|
|
221 | 221 | if not files: |
|
222 | 222 | self.ui.warn(_('%s: empty changeset') |
@@ -866,7 +866,6 b' class Engine(threading.Thread):' | |||
|
866 | 866 | pass |
|
867 | 867 | |
|
868 | 868 | def getReaders(self): |
|
869 | result = [] | |
|
870 | 869 | self.condition.acquire() |
|
871 | 870 | result = self.readers.keys() |
|
872 | 871 | self.condition.release() |
@@ -1531,7 +1530,7 b' class Zeroconf(object):' | |||
|
1531 | 1530 | # This is a quick test to see if we can parse the packets we generate |
|
1532 | 1531 | #temp = DNSIncoming(out.packet()) |
|
1533 | 1532 | try: |
|
1534 |
|
|
|
1533 | self.socket.sendto(out.packet(), 0, (addr, port)) | |
|
1535 | 1534 | except: |
|
1536 | 1535 | # Ignore this, it may be a temporary loss of network connection |
|
1537 | 1536 | pass |
@@ -131,7 +131,7 b' class listener(object):' | |||
|
131 | 131 | def getzcpaths(): |
|
132 | 132 | server = Zeroconf.Zeroconf() |
|
133 | 133 | l = listener() |
|
134 |
|
|
|
134 | Zeroconf.ServiceBrowser(server, "_hg._tcp.local.", l) | |
|
135 | 135 | time.sleep(1) |
|
136 | 136 | server.close() |
|
137 | 137 | for v in l.found.values(): |
@@ -894,7 +894,7 b' def debuginstall(ui):' | |||
|
894 | 894 | ui.status(_("Checking templates...\n")) |
|
895 | 895 | try: |
|
896 | 896 | import templater |
|
897 |
|
|
|
897 | templater.templater(templater.templatepath("map-cmdline.default")) | |
|
898 | 898 | except Exception, inst: |
|
899 | 899 | ui.write(" %s\n" % inst) |
|
900 | 900 | ui.write(_(" (templates seem to have been installed incorrectly)\n")) |
@@ -1690,7 +1690,7 b' def import_(ui, repo, patch1, *patches, ' | |||
|
1690 | 1690 | |
|
1691 | 1691 | files = {} |
|
1692 | 1692 | try: |
|
1693 |
|
|
|
1693 | patch.patch(tmpname, ui, strip=strip, cwd=repo.root, | |
|
1694 | 1694 |
|
|
1695 | 1695 | finally: |
|
1696 | 1696 | files = patch.updatedir(ui, repo, files, similarity=sim/100.) |
@@ -233,7 +233,7 b' class filectx(object):' | |||
|
233 | 233 | |
|
234 | 234 | def __nonzero__(self): |
|
235 | 235 | try: |
|
236 |
|
|
|
236 | self._filenode | |
|
237 | 237 | return True |
|
238 | 238 | except error.LookupError: |
|
239 | 239 | # file is missing |
@@ -494,7 +494,7 b' def error_handler(url):' | |||
|
494 | 494 | HANDLE_ERRORS = i |
|
495 | 495 | try: |
|
496 | 496 | fo = urllib2.urlopen(url) |
|
497 |
|
|
|
497 | fo.read() | |
|
498 | 498 | fo.close() |
|
499 | 499 | try: status, reason = fo.status, fo.reason |
|
500 | 500 | except AttributeError: status, reason = None, None |
@@ -835,7 +835,7 b' class revlog(object):' | |||
|
835 | 835 | # odds of a binary node being all hex in ASCII are 1 in 10**25 |
|
836 | 836 | try: |
|
837 | 837 | node = id |
|
838 |
|
|
|
838 | self.rev(node) # quick search the index | |
|
839 | 839 | return node |
|
840 | 840 | except LookupError: |
|
841 | 841 | pass # may be partial hex id |
@@ -855,7 +855,7 b' class revlog(object):' | |||
|
855 | 855 | try: |
|
856 | 856 | # a full hex nodeid? |
|
857 | 857 | node = bin(id) |
|
858 |
|
|
|
858 | self.rev(node) | |
|
859 | 859 | return node |
|
860 | 860 | except (TypeError, LookupError): |
|
861 | 861 | pass |
@@ -219,7 +219,7 b' def _verify(repo):' | |||
|
219 | 219 | warn(_("warning: %s@%s: copy source revision is nullid %s:%s") |
|
220 | 220 | % (f, lr, rp[0], short(rp[1]))) |
|
221 | 221 | else: |
|
222 |
|
|
|
222 | fl2.rev(rp[1]) | |
|
223 | 223 | except Exception, inst: |
|
224 | 224 | exc(lr, _("checking rename of %s") % short(n), inst, f) |
|
225 | 225 |
General Comments 0
You need to be logged in to leave comments.
Login now