##// END OF EJS Templates
revlog: extract function for getting node from known-to-exist rev...
revlog: extract function for getting node from known-to-exist rev Many of the calls to index_node() (which converts a rev to a nodeid) are done with a rev that's know to exist. If the function fails, there's something really wrong and we should just abort. This was done in only one place. This patch starts by extracting that code to a function that we can reuse in later patches. Differential Revision: https://phab.mercurial-scm.org/D3456

File last commit:

r32429:7d8da7b5 default
r37877:a91f31a1 default
Show More
test-xdg.t
11 lines | 264 B | text/troff | Tads3Lexer
David Demelier
hg: allow usage of XDG_CONFIG_HOME/hg/hgrc...
r30941 #if no-windows no-osx
$ mkdir -p xdgconf/hg
$ echo '[ui]' > xdgconf/hg/hgrc
$ echo 'username = foobar' >> xdgconf/hg/hgrc
$ XDG_CONFIG_HOME="`pwd`/xdgconf" ; export XDG_CONFIG_HOME
$ unset HGRCPATH
Durham Goode
tests: hide warning from test-xdg.t...
r32429 $ hg config ui.username 2>/dev/null
David Demelier
hg: allow usage of XDG_CONFIG_HOME/hg/hgrc...
r30941 foobar
#endif