Show More
@@ -259,7 +259,7 b' def hook(ui, repo, hooktype, node=None, ' | |||||
259 | changegroup. else send one email per changeset.''' |
|
259 | changegroup. else send one email per changeset.''' | |
260 | n = notifier(ui, repo, hooktype) |
|
260 | n = notifier(ui, repo, hooktype) | |
261 | if not n.subs: |
|
261 | if not n.subs: | |
262 |
ui.debug(_('notify: no subscribers to repo %s\n' % n.root) |
|
262 | ui.debug(_('notify: no subscribers to repo %s\n') % n.root) | |
263 | return |
|
263 | return | |
264 | if n.skipsource(source): |
|
264 | if n.skipsource(source): | |
265 | ui.debug(_('notify: changes have source "%s" - skipping\n') % |
|
265 | ui.debug(_('notify: changes have source "%s" - skipping\n') % |
@@ -213,8 +213,8 b' def backout(ui, repo, rev, **opts):' | |||||
213 | '--parent')) |
|
213 | '--parent')) | |
214 | p = repo.lookup(opts['parent']) |
|
214 | p = repo.lookup(opts['parent']) | |
215 | if p not in (p1, p2): |
|
215 | if p not in (p1, p2): | |
216 | raise util.Abort(_('%s is not a parent of %s' % |
|
216 | raise util.Abort(_('%s is not a parent of %s') % | |
217 |
(short(p), short(node))) |
|
217 | (short(p), short(node))) | |
218 | parent = p |
|
218 | parent = p | |
219 | else: |
|
219 | else: | |
220 | if opts['parent']: |
|
220 | if opts['parent']: | |
@@ -1969,12 +1969,12 b' def revert(ui, repo, *pats, **opts):' | |||||
1969 | elif misslist is not None: |
|
1969 | elif misslist is not None: | |
1970 | handle(misslist, backupmiss) |
|
1970 | handle(misslist, backupmiss) | |
1971 | else: |
|
1971 | else: | |
1972 |
if exact: ui.warn(_('file not managed: %s\n' % rel) |
|
1972 | if exact: ui.warn(_('file not managed: %s\n') % rel) | |
1973 | break |
|
1973 | break | |
1974 | else: |
|
1974 | else: | |
1975 | # file has not changed in dirstate |
|
1975 | # file has not changed in dirstate | |
1976 | if node == parent: |
|
1976 | if node == parent: | |
1977 |
if exact: ui.warn(_('no changes needed to %s\n' % rel) |
|
1977 | if exact: ui.warn(_('no changes needed to %s\n') % rel) | |
1978 | continue |
|
1978 | continue | |
1979 | if pmf is None: |
|
1979 | if pmf is None: | |
1980 | # only need parent manifest in this unlikely case, |
|
1980 | # only need parent manifest in this unlikely case, |
@@ -242,8 +242,8 b' def merge(repo, node, force=None, remind' | |||||
242 | repo.ui.status(_("There are unresolved merges," |
|
242 | repo.ui.status(_("There are unresolved merges," | |
243 | " you can redo the full merge using:\n" |
|
243 | " you can redo the full merge using:\n" | |
244 | " hg update -C %s\n" |
|
244 | " hg update -C %s\n" | |
245 | " hg merge %s\n" |
|
245 | " hg merge %s\n") | |
246 |
% (pl[0].rev(), pl[1].rev())) |
|
246 | % (pl[0].rev(), pl[1].rev())) | |
247 | elif remind: |
|
247 | elif remind: | |
248 | repo.ui.status(_("(branch merge, don't forget to commit)\n")) |
|
248 | repo.ui.status(_("(branch merge, don't forget to commit)\n")) | |
249 | return stats[3] |
|
249 | return stats[3] |
@@ -30,7 +30,7 b' REVLOG_DEFAULT_VERSION = REVLOG_DEFAULT_' | |||||
30 | def flagstr(flag): |
|
30 | def flagstr(flag): | |
31 | if flag == "inline": |
|
31 | if flag == "inline": | |
32 | return REVLOGNGINLINEDATA |
|
32 | return REVLOGNGINLINEDATA | |
33 |
raise RevlogError(_("unknown revlog flag %s" % flag) |
|
33 | raise RevlogError(_("unknown revlog flag %s") % flag) | |
34 |
|
34 | |||
35 | def hash(text, p1, p2): |
|
35 | def hash(text, p1, p2): | |
36 | """generate a hash from the given text and its parent hashes |
|
36 | """generate a hash from the given text and its parent hashes | |
@@ -355,15 +355,15 b' class revlog(object):' | |||||
355 | fmt = v & 0xFFFF |
|
355 | fmt = v & 0xFFFF | |
356 | if fmt == REVLOGV0: |
|
356 | if fmt == REVLOGV0: | |
357 | if flags: |
|
357 | if flags: | |
358 | raise RevlogError(_("index %s invalid flags %x for format v0" % |
|
358 | raise RevlogError(_("index %s invalid flags %x for format v0") % | |
359 |
(self.indexfile, flags)) |
|
359 | (self.indexfile, flags)) | |
360 | elif fmt == REVLOGNG: |
|
360 | elif fmt == REVLOGNG: | |
361 | if flags & ~REVLOGNGINLINEDATA: |
|
361 | if flags & ~REVLOGNGINLINEDATA: | |
362 | raise RevlogError(_("index %s invalid flags %x for revlogng" % |
|
362 | raise RevlogError(_("index %s invalid flags %x for revlogng") % | |
363 |
(self.indexfile, flags)) |
|
363 | (self.indexfile, flags)) | |
364 | else: |
|
364 | else: | |
365 | raise RevlogError(_("index %s invalid format %d" % |
|
365 | raise RevlogError(_("index %s invalid format %d") % | |
366 |
(self.indexfile, fmt)) |
|
366 | (self.indexfile, fmt)) | |
367 | self.version = v |
|
367 | self.version = v | |
368 | if v == REVLOGV0: |
|
368 | if v == REVLOGV0: | |
369 | self.indexformat = indexformatv0 |
|
369 | self.indexformat = indexformatv0 | |
@@ -931,8 +931,8 b' class revlog(object):' | |||||
931 | return |
|
931 | return | |
932 | trinfo = tr.find(self.indexfile) |
|
932 | trinfo = tr.find(self.indexfile) | |
933 | if trinfo == None: |
|
933 | if trinfo == None: | |
934 | raise RevlogError(_("%s not found in the transaction" % |
|
934 | raise RevlogError(_("%s not found in the transaction") % | |
935 |
self.indexfile) |
|
935 | self.indexfile) | |
936 |
|
936 | |||
937 | trindex = trinfo[2] |
|
937 | trindex = trinfo[2] | |
938 | dataoff = self.start(trindex) |
|
938 | dataoff = self.start(trindex) |
General Comments 0
You need to be logged in to leave comments.
Login now