##// END OF EJS Templates
revlog: use revlog.display_id in format related errors...
marmoute -
r47928:3a9f3470 default
parent child Browse files
Show More
@@ -490,7 +490,7 b' class revlog(object):'
490 if flags:
490 if flags:
491 raise error.RevlogError(
491 raise error.RevlogError(
492 _(b'unknown flags (%#04x) in version %d revlog %s')
492 _(b'unknown flags (%#04x) in version %d revlog %s')
493 % (flags >> 16, fmt, self._indexfile)
493 % (flags >> 16, fmt, self.display_id)
494 )
494 )
495
495
496 self._inline = False
496 self._inline = False
@@ -500,7 +500,7 b' class revlog(object):'
500 if flags & ~REVLOGV1_FLAGS:
500 if flags & ~REVLOGV1_FLAGS:
501 raise error.RevlogError(
501 raise error.RevlogError(
502 _(b'unknown flags (%#04x) in version %d revlog %s')
502 _(b'unknown flags (%#04x) in version %d revlog %s')
503 % (flags >> 16, fmt, self._indexfile)
503 % (flags >> 16, fmt, self.display_id)
504 )
504 )
505
505
506 self._inline = versionflags & FLAG_INLINE_DATA
506 self._inline = versionflags & FLAG_INLINE_DATA
@@ -510,7 +510,7 b' class revlog(object):'
510 if flags & ~REVLOGV2_FLAGS:
510 if flags & ~REVLOGV2_FLAGS:
511 raise error.RevlogError(
511 raise error.RevlogError(
512 _(b'unknown flags (%#04x) in version %d revlog %s')
512 _(b'unknown flags (%#04x) in version %d revlog %s')
513 % (flags >> 16, fmt, self._indexfile)
513 % (flags >> 16, fmt, self.display_id)
514 )
514 )
515
515
516 # There is a bug in the transaction handling when going from an
516 # There is a bug in the transaction handling when going from an
@@ -523,7 +523,7 b' class revlog(object):'
523
523
524 else:
524 else:
525 raise error.RevlogError(
525 raise error.RevlogError(
526 _(b'unknown version (%d) in revlog %s') % (fmt, self._indexfile)
526 _(b'unknown version (%d) in revlog %s') % (fmt, self.display_id)
527 )
527 )
528
528
529 self.nodeconstants = sha1nodeconstants
529 self.nodeconstants = sha1nodeconstants
@@ -2990,7 +2990,7 b' class revlog(object):'
2990 if version != state[b'expectedversion']:
2990 if version != state[b'expectedversion']:
2991 yield revlogproblem(
2991 yield revlogproblem(
2992 warning=_(b"warning: '%s' uses revlog format %d; expected %d")
2992 warning=_(b"warning: '%s' uses revlog format %d; expected %d")
2993 % (self._indexfile, version, state[b'expectedversion'])
2993 % (self.display_id, version, state[b'expectedversion'])
2994 )
2994 )
2995
2995
2996 state[b'skipread'] = set()
2996 state[b'skipread'] = set()
@@ -5,7 +5,7 b''
5 $ hg commit -m test
5 $ hg commit -m test
6 $ rm .hg/requires
6 $ rm .hg/requires
7 $ hg tip
7 $ hg tip
8 abort: unknown version (65535) in revlog 00changelog.i
8 abort: unknown version (65535) in revlog 00changelog
9 [50]
9 [50]
10 $ echo indoor-pool > .hg/requires
10 $ echo indoor-pool > .hg/requires
11 $ hg tip
11 $ hg tip
@@ -37,7 +37,7 b' Unknown flags to revlog are rejected'
37 ... fh.write(b'\xff\x00\xde\xad') and None
37 ... fh.write(b'\xff\x00\xde\xad') and None
38
38
39 $ hg log
39 $ hg log
40 abort: unknown flags (0xff00) in version 57005 revlog 00changelog.i
40 abort: unknown flags (0xff00) in version 57005 revlog 00changelog
41 [50]
41 [50]
42
42
43 $ cd ..
43 $ cd ..
@@ -7,7 +7,7 b' Flags on revlog version 0 are rejected'
7 ... fh.write(b'\x00\x01\x00\x00') and None
7 ... fh.write(b'\x00\x01\x00\x00') and None
8
8
9 $ hg log
9 $ hg log
10 abort: unknown flags (0x01) in version 0 revlog 00changelog.i
10 abort: unknown flags (0x01) in version 0 revlog 00changelog
11 [50]
11 [50]
12
12
13 Unknown flags on revlog version 1 are rejected
13 Unknown flags on revlog version 1 are rejected
@@ -16,7 +16,7 b' Unknown flags on revlog version 1 are re'
16 ... fh.write(b'\x00\x04\x00\x01') and None
16 ... fh.write(b'\x00\x04\x00\x01') and None
17
17
18 $ hg log
18 $ hg log
19 abort: unknown flags (0x04) in version 1 revlog 00changelog.i
19 abort: unknown flags (0x04) in version 1 revlog 00changelog
20 [50]
20 [50]
21
21
22 Unknown version is rejected
22 Unknown version is rejected
@@ -25,7 +25,7 b' Unknown version is rejected'
25 ... fh.write(b'\x00\x00\xbe\xef') and None
25 ... fh.write(b'\x00\x00\xbe\xef') and None
26
26
27 $ hg log
27 $ hg log
28 abort: unknown version (48879) in revlog 00changelog.i
28 abort: unknown version (48879) in revlog 00changelog
29 [50]
29 [50]
30
30
31 $ cd ..
31 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now