Mercurial > hg > mercurial-source
changeset 6210:942287cb1f57
Removed trailing spaces from everything except test output
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 07 Mar 2008 00:24:36 +0100 |
parents | 4e8cd15240bf |
children | f89fd07fc51d |
files | contrib/hgk doc/hgrc.5.txt hgext/convert/convcmd.py hgext/convert/hg.py hgext/convert/subversion.py hgext/record.py hgext/win32mbcs.py mercurial/commands.py mercurial/context.py mercurial/hgweb/hgwebdir_mod.py mercurial/localrepo.py templates/gitweb/footer.tmpl tests/test-convert-svn-sink tests/test-hgweb-commands.out tests/test-issue660 tests/test-qrecord tests/test-win32text |
diffstat | 17 files changed, 34 insertions(+), 34 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/hgk +++ b/contrib/hgk @@ -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
--- a/doc/hgrc.5.txt +++ b/doc/hgrc.5.txt @@ -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:
--- a/hgext/convert/convcmd.py +++ b/hgext/convert/convcmd.py @@ -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:
--- a/hgext/convert/hg.py +++ b/hgext/convert/hg.py @@ -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():
--- a/hgext/convert/subversion.py +++ b/hgext/convert/subversion.py @@ -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
--- a/hgext/record.py +++ b/hgext/record.py @@ -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)
--- a/hgext/win32mbcs.py +++ b/hgext/win32mbcs.py @@ -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)
--- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -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):
--- a/mercurial/context.py +++ b/mercurial/context.py @@ -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)
--- a/mercurial/hgweb/hgwebdir_mod.py +++ b/mercurial/hgweb/hgwebdir_mod.py @@ -97,7 +97,7 @@ return # nested indexes and hgwebs - + repos = dict(self.repos) while virtual: real = repos.get(virtual)
--- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -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
--- a/templates/gitweb/footer.tmpl +++ b/templates/gitweb/footer.tmpl @@ -1,6 +1,6 @@ <div class="page_footer"> <div class="page_footer_text">#repo|escape#</div> -<a class="rss_logo" href="#url#rss-log">RSS</a> +<a class="rss_logo" href="#url#rss-log">RSS</a> <a class="rss_logo" href="#url#atom-log">Atom</a> <br /> #motd#
--- a/tests/test-convert-svn-sink +++ b/tests/test-convert-svn-sink @@ -10,7 +10,7 @@ svnupanddisplay() { ( - cd $1; + cd $1; svn up; svn st -v | fixpath limit='' @@ -18,7 +18,7 @@ limit="--limit=$2" fi svn log --xml -v $limit | fixpath | sed 's,<date>.*,<date/>,' - ) + ) } echo "[extensions]" >> $HGRCPATH
index aba5325d352c48ac0e2aa91841da937b1afd4566..ca2c89c4617605e944d1293a34856a0ba9beca33 GIT binary patch literal 17350 zc%1E9>2l*X5}y6Js(lEAF6Xi(lCpfsvNDP7O|q5Dq{g1w<IgNaf)Z;el0`z6o#RdR zVYeFxZ&63aQ%RK-M+ea82D%&FAJCkAa?3bb#Dv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