mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
c8ff620c56
For filelogs, debugindex and debugdata can be called with the file name directly instead of the path to the revlog. Since in the future filelogs will no longer be valid revlogs, calling with a path to the revlog is deprecated for debugdata. For debugindex it is expected to still work, but I changed them as well for consistency.
17 lines
501 B
Raku
17 lines
501 B
Raku
$ hg init dir
|
|
$ cd dir
|
|
$ echo bleh > bar
|
|
$ hg add bar
|
|
$ hg ci -m 'add bar'
|
|
|
|
$ hg cp bar foo
|
|
$ echo >> bar
|
|
$ hg ci -m 'cp bar foo; change bar'
|
|
|
|
$ hg debugrename foo
|
|
foo renamed from bar:26d3ca0dfd18e44d796b564e38dd173c9668d3a9
|
|
$ hg debugindex bar
|
|
rev offset length base linkrev nodeid p1 p2
|
|
0 0 6 0 0 26d3ca0dfd18 000000000000 000000000000
|
|
1 6 7 1 1 d267bddd54f7 26d3ca0dfd18 000000000000
|