mercurial

Is there an equivalent to svn propset command in mercurial?

Edit: Thanks msw, omnifarious and tonfa for your answers. Although the example I gave was one of my main uses for propset, omnifarious & tonfa answered the general question as well. The specific question of including tags into text files was solved by this question. Thanks for your help. Original question: " I use subversion keywords ...

In Mercurial, when Peter "hg clone" me, and I commit and he pull and update, he gets my version, but not when I rollback?

That is, in Mercurial, if Peter cloned from me by hg clone c:\mycode e:\code into his e:\code let's say there is a file code.txt and it contains the text the code is 7 Now, when I change it to the code is 11 and hg commit, then he can get my code using hg pull and hg update. Now his version says the code is 11 But if I decide the ...

In Mercurial, what is the exact step that Peter or me has to do so that he gets back the rolled back version?

The short question is: if I hg rollback, how does Peter get my rolled back version if he cloned from me? What are the exact steps he or me has to do or type? This is related to http://stackoverflow.com/questions/3034793/in-mercurial-when-peter-hg-clone-me-and-i-commit-and-he-pull-and-update-he-g The details: After the following steps...

In Mercurial, what is the command to say "make all my files as of 2 months ago! (Revision 328)" or "the current version"?

In Mercurial, what is the command to say 1) make all my files as of two months ago (say, April 16, 6:03pm) (Revision 328 as seen from the hg log) 2) or, make my files back to the most current repository version? ...

Why TortoiseHg not show the "merge conflict"?

Short version of the question: Since I already have TortoiseHg, I right clicked on that file trying to see the merge conflict visually, but there is no way to see it? Details: To make a simple case of merge conflict, I hg init a repo on Win 7, and then clone it to another folder. Now, in one working directory, i added the line "the co...

It is said that Mercurial's "hg clone" is very cheap... but it is 400MB on my hard drive? (on Mac OS X Snow Leopard)

I have a project I cloned over the network to the Mac hard drive (OS X Snow Leopard). The project is about 1GB in the hard drive du -s 2073848 . so when I hg clone proj proj2 then when I MacBook-Pro ~/development $ du -s proj 2073848 proj MacBook-Pro ~/development $ du -s proj2 894840 proj2 MacBook-Pro ~/development $ du -s 239...

Does any Version Control System like SVN, Git, or Mercurial let you "keep latest version" but not the revisions? (such as for binary files)

In our project files, if there are binary files, such as .doc, .xls, .jpg, and we choose to not keep their past revisions (just keeping a latest version is ok), is there a way to tell SVN, Git, or Mercurial or some other tool to skip the revisions for these files or for a particular folder? Say, there is a 4MB .doc file that I need to c...

Mercurial - How do you export your repo's source to a production site?

I've tried using archive in Tortoise HG by opening my repo change log. This doesn't seem to be anything like SVN's export command, where I can simply export a remote repository to the current directory. I use this to get a clean copy of my source for production (without notes and repository data). How can I do something like this in HG? ...

How to "revert" unchanged files with mercurial?

I have installed Windows7 on my computer, and I had to change all permissions/take ownership - which apparently "touched" all my files, and now everything appears to be "modified" (when I do "hg status"), but only some files have actual changes. Is there a command I can run so that I will either "commit" or "revert" all the files that h...

Should checkins be small steps or complete features?

Two uses of version control seem to dictate different checkin styles. distribution centric: changesets will generally reflect a complete feature. In general these checkins will be larger. This style is more user/maintainer friendly. rollback centric: changesets will be individual small steps so the history can function like an incred...

In Mercurial (hg), how do you see a list of files that will be pushed if an "hg push" is issued?

We can see all the changesets and the files involved using hg outgoing -v but the filenames are all scattered in the list of changesets. Is there a way to just see a list of all the files that will go out if hg push is issued? ...

Using Mercurial (hg), can you just "hg backout" all the commits you did for the files you don't want to push, and then do a push?

Using Mercurial (hg), can you just "hg backout" all the commits you did for the files you don't want to push, and then do a push? Because Mercurial (or Git) won't let us push a single file or a single folder to another repository, so I am thinking: 1) How about, we just look at the commit we did, and hg backout the ones we don't want t...

Mercurial: Share a repo without putting it on a server?

I am working in a student group with several other people. We would like to use Mercurial as our version control system, but some of our files can't be put online in a public hosting service like Google Projects or Codeplex. Is there some way that we can host a repo on our own machines, passing the files/changesets between each other as ...

Mercurial: How to set it up on my own server?

I've got a server and I want to use Mercurial to coordinate a project. Can I just make a repo, put it on the server, and have everyone else clone it, then push/pull from it? Is there some way to password protect it? ...

create hgrc file to work on all paths on a machine, and for several repos

I want to create a hgrc file to set the username and password for all paths on some machine, e.g no matter in which directory I am in, hg clone some_path will always work without prompting for a username and a password (this is for an auto-deploy script). Also, it should work for several repos, not just one. I followed the instructions ...

Difference between a changeset and a patch?

What is the difference a changeset and a patch? I was using hg today and I noticed the import command mentions that it is used to "import an ordered set of patches." What is a patch? ...

Counting changed lines of code over time

Is there any good tool that computes the number of changed lines of code over a certain time period in a mercurial repository? Something along the lines of statsvn would be great, but anything counting the number of changed lines of code within 6 months will do (including a clever combination of arguments to hg log). Thanks. PS: Please ...

Distributed version control systems merge easiness details

I have just read Joel's blogpost concerning distributed version control systems and can't understand the main idea. He says that SVN thinks in terms of versions while Mercurial thinks in terms of changes. And, according to Joel, it solves merging problems. I heard this idea several times and still haven't conceived it. As I know, SVN's ...

Use intellij as the default merge tool for TortoiseHG/Mercurial

I would use hg4idea to do this but it seems to leak memory badly. Is there a way to use Intellij 9 as the default merge tool for TortoiseHG/Mercurial? KDiff3 makes very little sense to me. ...

Moving from SVN to HG : branching and backup

My company runs svn right now and we are very familiar with it. However, because we do a lot of concurrent development, merging can become very complicated.. We've been playing with hg and we really like the ability to make fast and effective clones on a per-feature basis. We've got two main issues we'd like to resolve before we move t...