Mercurial HG拉特定的“无变化".但文件不同 [英] Mercurial HG pull specific "no changes" yet files different
问题描述
我的本地文件和修订版本处于不同的阶段,但是hg pull& hg update default会返回无更改"消息.
My local file and mercurial revision are at different stages however hg pull & hg update default returns a no changes message.
在bitbucket上,我尝试下载到本地计算机的版本是 https ://bitbucket.org/sayth/pyxml/src/c63b5ce2119ae64331ee2551fc19083315be0571/xrace.py
On bitbucket my repo and revision I am trying to pull to local machine is https://bitbucket.org/sayth/pyxml/src/c63b5ce2119ae64331ee2551fc19083315be0571/xrace.py
[sayth@localhost pyXML]$ hg pull && hg update default
pulling from https://bitbucket.org/sayth/pyxml
searching for changes
no changes found
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
在最新版本的bitbucket上,您仅可以看到它们是不同的.
At bitbucket at latest revision you can see just in the imports alone they are different.
Bitbucket
# from lxml import etree
from lxml import objectify
import argparse
import os
本地计算机
from pyquery import PyQuery as pq
# import pandas as pd
# import psycopg2
import argparse
import os
# from datetime import datetime
即使尝试按修订号进行提取,但也不会更新.
Even trying pulling by revision number but it wont update.
[sayth@localhost pyXML]$ hg pull -r c63b5ce
pulling from https://bitbucket.org/sayth/pyxml
no changes found
推荐答案
您的克隆是远程存储库的完整副本,其中包含所有修订.
拉动时,您正在检查远程回购中是否有任何新修订,并将它们复制到本地克隆中,但是它不会更改您当前正在编辑的文件.
Your clone is a full copy of the remote repository with all the revisions in it.
When you pull you're checking the remote repo for any new revisions and copying them to your local clone, but it does not change the files that you are currently editing.
更新会将您的工作副本(即当前正在编辑的文件)更改为您选择的任何版本.
如果仅执行hg update
而未指定修订版本,它将更新为它认为是回购的当前提示的任何内容.
如果您执行hg update -r c63b5ce2119a
,它将把您的工作副本更新为指定的版本,这将更改您当前正在编辑的文件.
update changes your working copy, i.e. the files you are currently editing to whatever revision you choose.
If you just do hg update
without specifying a revision it will update to whatever it thinks is the current tip of the repo.
If you do hg update -r c63b5ce2119a
it will update your working copy to the specified revision and that will change the files you are currently editing.
这篇关于Mercurial HG拉特定的“无变化".但文件不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!