Filelist Download History

1 view
Skip to first unread message

Mathilde Chisler

unread,
Jan 9, 2024, 7:01:34 PM1/9/24
to anamcader

It is correct that you cannot easily remove a particular file from Mercurial in the sense that doing so will disrupt all the changeset IDs in your repository. When you change the changeset IDs, everybody has to re-clone the repository. See the Wiki page about editing history for information about the consequences of modifying the history in Mercurial.

filelist download history


DOWNLOAD https://t.co/w075zNPa81



When doing some installations I change the 'HISTFILE' variable to a different file to record the commands used. Now I want to use the history command to display them just like with the history command which defaults to using the .bash_history file.

The history command never operates on a file, only on its in-memory history list. You can only read (r), write (-w), and append (-a) that list to or from a file, and then access or manipulate the in-memory list. Reading from a file will replace or extend the history in your current shell session.

You can add any history options you want to the second history command in either case. If you'll be doing this a lot, you may want to define a function accepting the file as an argument and running the subshell version:

So you could write out the current history with history -a temp_history_file, then read in the new ones with history -r new_history_file. Your command history would then have the commands from new_history_file as it's most recent entries.

Note: When utilizing file history to restore files, it will replace the current files with the backup from the chosen specific time point, bearing the same name. If you wish to retain your present files simultaneously, it is advised to independently perform a backup prior to proceeding with the restoration.


>
> > Is there a way to get the revision history of a particular file?
> > Basically a list of commits in which that file changed. So you can
> > easily when a file was modified, by who. Then perhaps be able to
> > select a couple revisions of the file to compare to each other?
>
> > Similar to the file history dialog in Perforce:

35fe9a5643
Reply all
Reply to author
Forward
0 new messages