# HG changeset patch # User Thomas Arendsen Hein # Date 1204845876 -3600 # Node ID 942287cb1f579e36f1b5a8002224116e3439ca3f # Parent 4e8cd15240bf8d8f179cc4e7ebe25cb4d94644e1 Removed trailing spaces from everything except test output diff -r 4e8cd15240bf -r 942287cb1f57 contrib/hgk --- a/contrib/hgk Fri Mar 07 00:01:13 2008 +0100 +++ b/contrib/hgk Fri Mar 07 00:24:36 2008 +0100 @@ -342,7 +342,7 @@ proc readrefs {} { global tagids idtags headids idheads tagcontents env curid - + set curid [exec $env(HG) --config ui.report_untrusted=false id] regexp -- {[[:xdigit:]]+} $curid curid diff -r 4e8cd15240bf -r 942287cb1f57 doc/hgrc.5.txt --- a/doc/hgrc.5.txt Fri Mar 07 00:01:13 2008 +0100 +++ b/doc/hgrc.5.txt Fri Mar 07 00:24:36 2008 +0100 @@ -217,7 +217,7 @@ defines the extension. To explicitly disable an extension that is enabled in an hgrc of - broader scope, prepend its path with '!', as in + broader scope, prepend its path with '!', as in 'hgext.foo = !/ext/path' or 'hgext.foo = !' when no path is supplied. Example for ~/.hgrc: diff -r 4e8cd15240bf -r 942287cb1f57 hgext/convert/convcmd.py --- a/hgext/convert/convcmd.py Fri Mar 07 00:01:13 2008 +0100 +++ b/hgext/convert/convcmd.py Fri Mar 07 00:24:36 2008 +0100 @@ -236,7 +236,7 @@ for prev in commit.parents: if prev not in self.commitcache: self.cachecommit(prev) - pbranches.append((self.map[prev], + pbranches.append((self.map[prev], self.commitcache[prev].branch)) self.dest.setbranch(commit.branch, pbranches) for f, v in files: diff -r 4e8cd15240bf -r 942287cb1f57 hgext/convert/hg.py --- a/hgext/convert/hg.py Fri Mar 07 00:01:13 2008 +0100 +++ b/hgext/convert/hg.py Fri Mar 07 00:24:36 2008 +0100 @@ -114,7 +114,7 @@ self.repo.lookup(b[0]) except: missings.setdefault(b[1], []).append(b[0]) - + if missings: self.after() for pbranch, heads in missings.iteritems(): diff -r 4e8cd15240bf -r 942287cb1f57 hgext/convert/subversion.py --- a/hgext/convert/subversion.py Fri Mar 07 00:01:13 2008 +0100 +++ b/hgext/convert/subversion.py Fri Mar 07 00:24:36 2008 +0100 @@ -202,7 +202,7 @@ if self.startrev < 0: self.startrev = 0 except ValueError: - raise util.Abort(_('svn: start revision %s is not an integer') + raise util.Abort(_('svn: start revision %s is not an integer') % self.startrev) try: @@ -215,7 +215,7 @@ raise util.Abort(_('no revision found in module %s') % self.module.encode(self.encoding)) self.last_changed = self.revnum(self.head) - + self._changescache = None if os.path.exists(os.path.join(url, '.svn/entries')): @@ -288,7 +288,7 @@ self.ui.note(_('ignoring empty branch %s\n') % branch.encode(self.encoding)) continue - self.ui.note('found branch %s at %d\n' % + self.ui.note('found branch %s at %d\n' % (branch, self.revnum(brevid))) self.heads.append(brevid) @@ -298,7 +298,7 @@ 'with more than one branch')) revnum = self.revnum(self.heads[0]) if revnum < self.startrev: - raise util.Abort(_('svn: no revision found after start revision %d') + raise util.Abort(_('svn: no revision found after start revision %d') % self.startrev) return self.heads @@ -322,9 +322,9 @@ else: # Perform a full checkout on roots uuid, module, revnum = self.revsplit(rev) - entries = svn.client.ls(self.base + module, optrev(revnum), + entries = svn.client.ls(self.base + module, optrev(revnum), True, self.ctx) - files = [n for n,e in entries.iteritems() + files = [n for n,e in entries.iteritems() if e.kind == svn.core.svn_node_file] copies = {} @@ -364,7 +364,7 @@ tags = {} if self.tags is None: return tags - + start = self.revnum(self.head) try: for entry in get_log(self.url, [self.tags], self.startrev, start): @@ -442,7 +442,7 @@ if not path.startswith(p) or not paths[p].copyfrom_path: continue newpath = paths[p].copyfrom_path + path[len(p):] - self.ui.debug("branch renamed from %s to %s at %d\n" % + self.ui.debug("branch renamed from %s to %s at %d\n" % (path, newpath, revnum)) path = newpath break @@ -566,7 +566,7 @@ self.reparent('') fromkind = svn.ra.check_path(self.ra, entrypath.strip('/'), fromrev) self.reparent(self.module) - + if fromkind == svn.core.svn_node_file: # a deleted file entries.append(self.recode(entry)) elif fromkind == svn.core.svn_node_dir: @@ -677,7 +677,7 @@ self.child_cset = None def parselogentry(orig_paths, revnum, author, date, message): - """Return the parsed commit object or None, and True if + """Return the parsed commit object or None, and True if the revision is a branch root. """ self.ui.debug("parsing revision %d (%d changes)\n" % @@ -764,13 +764,13 @@ lastonbranch = True break if self.is_blacklisted(revnum): - self.ui.note('skipping blacklisted revision %d\n' + self.ui.note('skipping blacklisted revision %d\n' % revnum) continue if paths is None: self.ui.debug('revision %d has no entries\n' % revnum) continue - cset, lastonbranch = parselogentry(paths, revnum, author, + cset, lastonbranch = parselogentry(paths, revnum, author, date, message) if cset: firstcset = cset diff -r 4e8cd15240bf -r 942287cb1f57 hgext/record.py --- a/hgext/record.py Fri Mar 07 00:01:13 2008 +0100 +++ b/hgext/record.py Fri Mar 07 00:24:36 2008 +0100 @@ -67,8 +67,8 @@ class header(object): """patch header - - XXX shoudn't we move this to mercurial/patch.py ? + + XXX shoudn't we move this to mercurial/patch.py ? """ diff_re = re.compile('diff --git a/(.*) b/(.*)$') allhunks_re = re.compile('(?:index|new file|deleted file) ') @@ -134,7 +134,7 @@ class hunk(object): """patch hunk - + XXX shouldn't we merge this with patch.hunk ? """ maxcontext = 3 @@ -267,7 +267,7 @@ applied = {} # 'filename' -> [] of chunks def prompt(query): """prompt query, and process base inputs - + - y/n for the rest of file - y/n for the rest - ? (help) diff -r 4e8cd15240bf -r 942287cb1f57 hgext/win32mbcs.py --- a/hgext/win32mbcs.py Fri Mar 07 00:01:13 2008 +0100 +++ b/hgext/win32mbcs.py Fri Mar 07 00:24:36 2008 +0100 @@ -81,7 +81,7 @@ return arg def wrap(func): - + def wrapped(*args): # check argument is unicode, then call original for arg in args: @@ -122,7 +122,7 @@ from mercurial import ui _ui = ui.ui() os.path.join = wrap(os.path.join) - os.path.split = wrap(os.path.split) + os.path.split = wrap(os.path.split) os.path.splitext = wrap(os.path.splitext) os.path.splitunc = wrap(os.path.splitunc) os.path.normpath = wrap(os.path.normpath) @@ -134,7 +134,7 @@ def uninstall(): # restore original functions. os.path.join = unwrap(os.path.join) - os.path.split = unwrap(os.path.split) + os.path.split = unwrap(os.path.split) os.path.splitext = unwrap(os.path.splitext) os.path.splitunc = unwrap(os.path.splitunc) os.path.normpath = unwrap(os.path.normpath) diff -r 4e8cd15240bf -r 942287cb1f57 mercurial/commands.py --- a/mercurial/commands.py Fri Mar 07 00:01:13 2008 +0100 +++ b/mercurial/commands.py Fri Mar 07 00:24:36 2008 +0100 @@ -2474,7 +2474,7 @@ ui.status(_('listening at http://%s:%d/%s\n') % (self.httpd.addr, self.httpd.port, prefix)) else: - ui.status(_('listening at http://%s/%s\n') % + ui.status(_('listening at http://%s/%s\n') % (self.httpd.addr, prefix)) def run(self): diff -r 4e8cd15240bf -r 942287cb1f57 mercurial/context.py --- a/mercurial/context.py Fri Mar 07 00:01:13 2008 +0100 +++ b/mercurial/context.py Fri Mar 07 00:24:36 2008 +0100 @@ -232,7 +232,7 @@ if '_changectx' in self.__dict__: return self._changectx.rev() if '_changeid' in self.__dict__: - return self._changectx.rev() + return self._changectx.rev() return self._filelog.linkrev(self._filenode) def linkrev(self): return self._filelog.linkrev(self._filenode) diff -r 4e8cd15240bf -r 942287cb1f57 mercurial/hgweb/hgwebdir_mod.py --- a/mercurial/hgweb/hgwebdir_mod.py Fri Mar 07 00:01:13 2008 +0100 +++ b/mercurial/hgweb/hgwebdir_mod.py Fri Mar 07 00:24:36 2008 +0100 @@ -97,7 +97,7 @@ return # nested indexes and hgwebs - + repos = dict(self.repos) while virtual: real = repos.get(virtual) diff -r 4e8cd15240bf -r 942287cb1f57 mercurial/localrepo.py --- a/mercurial/localrepo.py Fri Mar 07 00:01:13 2008 +0100 +++ b/mercurial/localrepo.py Fri Mar 07 00:24:36 2008 +0100 @@ -517,7 +517,7 @@ fn = None params = cmd for name, filterfn in self._datafilters.iteritems(): - if cmd.startswith(name): + if cmd.startswith(name): fn = filterfn params = cmd[len(name):].lstrip() break @@ -1585,7 +1585,7 @@ Another wrinkle is doing the reverse, figuring out which changeset in the changegroup a particular filenode or manifestnode belongs to. - + The caller can specify some nodes that must be included in the changegroup using the extranodes argument. It should be a dict where the keys are the filenames (or 1 for the manifest), and the diff -r 4e8cd15240bf -r 942287cb1f57 templates/gitweb/footer.tmpl --- a/templates/gitweb/footer.tmpl Fri Mar 07 00:01:13 2008 +0100 +++ b/templates/gitweb/footer.tmpl Fri Mar 07 00:24:36 2008 +0100 @@ -1,6 +1,6 @@