what is the most convient way to access files in different branches

Uwe Brauer oub at mat.ucm.es
Thu Jan 27 07:04:09 UTC 2022



> I use TortoiseHg's Save at Revision which appends @[rev] to the
> filename. Saving foo.txt at revision 123 essentially does this:

>     hg cat --decode -o "foo at 123.txt" -r 123 foo.txt

Thanks. A long time ago I gave Tortoise a try and found it to
complicated, so I stick to the command line and GNU emacs. Emacs has a
similar function, that  works nicely, however only if the file exists in both
branches, which is not my case. 

I have separated the files of these branches in different directories (a
subversion approach, I know, but it avoids confusion). So I have to type
on the command line

 hg cat --decode -o "some-file-vs.tex" -r 123
 directory/long-file-that-is-hard-to-remember.tex

Which is cumbersome

> That's the only time any of my files have "@" in their name so it's
> obvious which files are references and which revision they are from. I
> don't have whatever extension gives hg purge but it's easy enough to
> del *@*.* if I don't want them anymore. Sometimes I'll add a line to
> .hgignore to hide them.

Emacs uses ~ I prefer a suffix vs-revnumber

I have heard the share extension might be helpful, but I cannot really
think how.

Uwe 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5673 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20220127/6ce6b1ee/attachment.p7s>


More information about the Mercurial mailing list